Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use yum to install Marathon in Centos7

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Centos7 how to use yum to install Marathon, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

First, there is no problem. After decompression, execute the script and start it with parameters:

. / bin/start-master zk://127.0.0.1:2181/mesos-zk zk://127.0.0.1:2181/marathon

The second one only needs to execute the instruction:

Sudo rpm-Uvh http://repos.mesosphere.com/el/6/noarch/RPMS/mesosphere-el-repo-6-2.noarch.rpmsudo yum-y install marathon

After the installation is complete, after executing systemctl start marahon, the browser opens http://ip:8080 and finds that it cannot be opened.

Execute systemctl status marahon or check / var/logs/messages and find the error "Required option 'master' not found".

Obviously, marathon startup needs to execute the master parameter, try to start directly with the command, there is no problem, indicating that there is no problem with yum installation. The official web page does not tell you how to configure the relevant parameters. Baidu says that it is similar to the configuration of mesos, that is:

Echo zk://127.0.0.1:2181/mesos > / etc/marathon/conf/masterecho zk://127.0.0.1:2181/marathon > / etc/marathon/conf/zk

Try to start again and find that the problem remains, so look at the / usr/lib/systemd/system/marathon.service file and find that an environment variable file is specified when the service starts, and the script / usr/share/marathon/bin/marathon is called to start, and there is nothing related to the input parameters. Looking at this script, I also found that there is no place to read the configuration file like mesos.

It is speculated that the new version of marahon may not support this usage, but after a while of google, we finally found an issue (https://jira.mesosphere.com/browse/MARATHON-7932) of the official jira. After 1.5 (https://github.com/mesosphere/marathon/blob/master/changelog.md#changes-from-14x-to-150), the relevant parameters have been configured through environment variables instead.

So modify the / etc/default/marathon file to add

MARATHON_MASTER= "zk://127.0.0.1:2181/mesos" MARATHON_ZK= "zk://127.0.0.1:2181/marathon"

Try to start the service again and succeed.

After reading the above, have you mastered how to install Marathon using yum in Centos7? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report