Marathon 以状态 1 退出

Chi*_*ani 2 marathon mesos mesosphere

我正在 ubuntu 16.04 xenial .zookeeper 上安装 mesosphere,并且 mesos-master 和 mesos-slave 运行良好,而开始马拉松时我遇到了这个问题。 找不到必需的选项“master”。我在 /etc/marathon/conf 中创建了文件夹。这些是我为 marathon 遵循的步骤。

sudo mkdir -p /etc/marathon/conf
sudo cp /etc/mesos-master/hostname /etc/marathon/conf
sudo cp /etc/mesos/zk /etc/marathon/conf/master
sudo cp /etc/marathon/conf/master /etc/marathon/conf/zk
sudo nano /etc/marathon/conf/zk ,edit mesos to marathon in the end .

I am attaching the whole logs here,
    Jan 25 14:18:01 master01 cron[859]: (*system*) INSECURE MODE (group/other writable) (/etc/crontab)
    Jan 25 14:18:01 master01 cron[859]: (*system*popularity-contest) INSECURE MODE (group/other writable) (/etc/cron.d/popularity-contest)
    Jan 25 14:18:01 master01 cron[859]: (*system*php) INSECURE MODE (group/other writable) (/etc/cron.d/php)
    Jan 25 14:18:01 master01 cron[859]: (*system*anacron) INSECURE MODE (group/other writable) (/etc/cron.d/anacron)
    Jan 25 14:18:29 master01 systemd[1]: marathon.service: Service hold-off time over, scheduling restart.
    Jan 25 14:18:29 master01 systemd[1]: Stopped Scheduler for Apache Mesos.
    Jan 25 14:18:29 master01 systemd[1]: Starting Scheduler for Apache Mesos...
    Jan 25 14:18:29 master01 systemd[1]: Started Scheduler for Apache Mesos.
    Jan 25 14:18:29 master01 marathon[29366]: No start hook file found ($HOOK_MARATHON_START). Proceeding with the start script.
    Jan 25 14:18:30 master01 marathon[29366]: [scallop] Error: **Required option 'master' not found**
    Jan 25 14:18:30 master01 systemd[1]: marathon.service: Main process exited, code=exited, status=1/FAILURE
    Jan 25 14:18:30 master01 systemd[1]: marathon.service: Unit entered failed state.
    Jan 25 14:18:30 master01 systemd[1]: marathon.service: Failed with result 'exit-code'.
Run Code Online (Sandbox Code Playgroud)

jan*_*isz 9

重大变更/包装标准化

我们现在发布更多规范化的包,这些包试图遵循 Linux 标准基本指南并使用 sbt-native-packager 来实现这一点。由于这一点以及将选项传递给马拉松的许多历史方法,我们只会/etc/default/marathon在启动时阅读。这个文件,像/etc/sysconfig/marathon,拥有所有马拉松的命令行选项,"MARATHON_XXX=YYY"这将转化为--xx=yyy我们不再支持/etc/marathon/conf将被转换为命令行参数的一组文件。此外,我们不再假设如果没有传入 zk/master 参数,则两者都在 localhost 上运行。

尝试将配置保留在环境中。

cat << EOF > /etc/default/marathon
MARATHON_MASTER=zk://127.0.0.1:2181/mesos
MARATHON_ZK=zk://127.0.0.1:2181/marathon
EOF
Run Code Online (Sandbox Code Playgroud)

请记住将 127.0.0.1:2181 替换为适当的 Zookeeper 位置。