马拉松退出状态1

时间:2018-01-29 07:16:53

标签: mesos marathon mesosphere

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

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'.

2 个答案:

答案 0 :(得分:4)

  

Breaking Changes / Packaging standardized

     

我们现在发布更多规范化的软件包,这些软件包试图遵循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

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

答案 1 :(得分:2)

在我的情况下,我使用Ubuntu 14.04的janisz解决方案无法正常工作,因为我需要添加export

cat << EOF > /etc/default/marathon
export MARATHON_MASTER=zk://127.0.0.1:2181/mesos
export MARATHON_ZK=zk://127.0.0.1:2181/marathon
EOF