Configure Mesos + Zookeeper on CentOs7

Source: Internet
Author: User
1. install jdk1.8 and configure the environment variable exportJAVA_HOME =/usr/local/opt/jdk1.8.0 _ 51 PATH = $ JAVA_HOME/bin: $ PATH2.zookeeper installation and configuration & nbs 1. install jdk1.8 and configure the environment variable export JAVA_HOME =/usr/local/opt/jdk1.8.0 _ 51 PATH = $ JAVA_HOME/bin: $ PATH 2. zookeeper installation and configuration a) install zookeeper $ wget http://mirrors.cnnic.cn/apache/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz $ Tar zxf zookeeper-3.4.6.tar.gz-C/usr/local/opt/B) start zookeeper $ mv conf/zoo_sample.cfg conf/zoo. cfg (rename zoo_sample.cfg under the zookeeper/conf/directory to zoo. cfg) $. /bin/zkServer. sh start 3. mesos installation and configuration a) install mesos $ wget http://www.apache.org/dist/mesos/0.22.1/mesos-0.22.1.tar.gz $ Tar zxf mesos-0.22.1.tar.gz-C/usr/local/opt/B) install mesos dependencies $ sudo yum groupinstall-y "Development Tools" $ sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O/etc/yum. repos. d/epel-apache-maven.repo $ sudo yum install-y apache-maven python-devel zlib-devel libcurl-devel openssl-devel cyrus-sasl-devel cyrus-sasl-md5 apr-devel subversion-devel apr-util- devel c) configure the mesos environment variable export MESOS_NATIVE_JAVA_LIBRARY =/usr/local/lib/libmesos. so export MESOS_NATIVE_LIBRARY =/usr/local/lib/libmesos. so d) Build mesos 1. add the WANdisco SVN repo file: '/etc/yum. repos. d/wandisco-svn.repo 'with content: [WANdiscoSVN] name = WANdisco SVN Repo 1.9 enabled = 1 baseurl = http://opensource.wandisco.com/centos/7/svn-1.9/RPMS/ $ Basearch/gpgcheck = 1 gpgkey = http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco 2. build mesos $ cd mesos $ mkdir build $ cd build $ .. /configure $ make check $ make install e) start mesos and execute it in the mesos/build/Directory (the log_dir and work_dir directories are modified by yourself): $. /bin/mesos-master.sh -- zk = zk: // localhost: 2181/mesos -- log_dir =/home/yaowang/WorkAndLog/mesos/log -- work_dir =/home/yaowang/WorkAndLog/mesos/work -- quorum = 1 $. /bin/mesos-slave.sh -- master = zk: // localhost: 2181/mesos -- log_dir =/home/yaowang/WorkAndLog/mesos/log -- work_dir =/home/yaowang/WorkAndLog/mesos/work localhost: 5050 check the running status of the current master and slave.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.