In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly shows you "how to use mesos+docker+marathon", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to use mesos+docker+marathon" this article.
Environment Centos6.7, kernel version 3.18
Install the dependency package for mesos first
Wget http://mirror.centos.org/centos/6/os/x86_64/Packages/apr-devel-1.3.9-5.el6_2.x86_64.rpmsudo rpm ihv apr-devel-1.3.9-5.el6_2.x86_64.rpmsudo yum install libcurl-devel apr-util-devel cyrus-sasl cyrus-sasl-devel cyrus-sasl-md5 subversion-devel
Install maven and configure PATH to ensure that you can find the mvn command.
Dependency packages under BTW,linux can generally be found on the website https://pkgs.org/
Download mesos-1.0.0:
To install the wget http://archive.apache.org/dist/mesos/1.0.0/mesos-1.0.0.tar.gztar zxvf mesos-1.0.0.tar.gzcd mesos-1.0.0# configuration, make sure that the version of gcc + is not too low before compilation. Please upgrade the version of Gmail + before compiling:. / configure-- prefix=/usr/local/mesos-1.0.0sudo makesudo make install
Start master after installation is complete
MESOS_PATH=/usr/local/mesos-1.0.0# add slave whitelist ${MESOS_PATH} / etc/mesos/slavesecho "slave1.ip" > > ${MESOS_PATH} / etc/mesos/slavesecho "slave2.ip" > > ${MESOS_PATH} / etc/mesos/slavesecho "slave3.ip" > > ${MESOS_PATH} / etc/mesos/slaves
Start
# launch mastersudo ${MESOS_PATH} / sbin/mesos-master-- ip=xxx.xxx.xxx.xxx-- whitelist=$ {MESOS_PATH} / etc/mesos/slaves-- work_dir=$ {MESOS_PATH} / work-- log_dir=$ {MESOS_PATH} / log > / dev/null 2 > & 1 & # launch slavesudo ${MESOS_PATH} / sbin/mesos-slave-- master='master.ip:5050'-- work_dir=$ {MESOS_PATH} / work > / dev/null 2 > & 1 &
The above startup mode has only one master, and zookeeper is required when you need to enable the HA feature.
# master:sudo ${MESOS_PATH} / sbin/mesos-master\-- ip=xxx.xxx.xxx.xxx\-- whitelist=$ {MESOS_PATH} / etc/mesos/slaves\-- work_dir=$ {MESOS_PATH} / work\-- log_dir=$ {MESOS_PATH} / log\-zk=zk://you_zk_address/mesos\-quorum=1 > / dev/null 2 > & 1 & # slave:sudo ${MESOS_PATH} / sbin/mesos-slave\-- master= 'zk://you_zk_address/mesps'\-- work_dir=$ {MESOS_PATH} / work > / dev/null 2 > & 1 &
Access port 5050 of the master address: http://you_master_ip:5050 can see the status of all agent and the status of tasks submitted
Install docker
Because of the system centos 7 required on the official website of docker, it certainly cannot be installed directly. I found an article on blog: http://www.cnblogs.com/zhenyuyaodidiao/p/5464422.html on the Internet.
Indicates that version 1.7.1 of docker can be installed on centos.
Sudo rpm-iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmsudo yum install docker-io# starts sudo docker- d or sudo service docker start
Install marathon
Wget 'http://downloads.mesosphere.com/marathon/v1.1.1/marathon-1.1.1.tgz'tar zxvf marathon-1.1.1.tgzcd marathon-1.1.1vim bin/start
Add the following line under CONF_FILE
Export MESOS_NATIVE_JAVA_LIBRARY=$ {MESOS_PATH} / lib/libmesos-1.0.0.so
Sudo bin/start
Visit http://your_ip:8080 and you can access the interface of marathon.
The above is all the contents of this article "how to use mesos+docker+marathon". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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: 295
*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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.