mesos+marathon平台搭建

一、安装jdk和maven

修改/etc/profile文件

export M2_HOME=/opt/apache-maven-3.3.9
export JAVA_HOME=/opt/jdk1.8.0_73
export CLASS_PATH=.:JAVAHOME/lib/tools.tarexportPATH=JAVA_HOME/bin:M2HOME/bin:PATH

二、安装mesos

  1. 安装参考http://mesos.apache.org/gettingstarted/
  2. 首先按照gcc, g++
  3. yum install -y patch python-devel zlib-devel libcurl-devel openssl-devel cyrus-sasl-devel cyrus-sasl-md5 apr-devel subversion-devel apr-util-devel
  4. ./configure
  5. make && make check && make install

三、安装启动zookeeper

  1. 解压zookeeper-3.4.8.tar.gz
  2. 在/opt/zookeeper-3.4.8/conf目录下,cp zoo_sample.cfg zoo.cfg
  3. 修改一下zoo.cfg文件
  4. 启动zkServer.sh start

四、启动mesos-master

  1. nohup mesos-master –log_dir=/root/mesos/logs –port=5050 –quorum=1 –registry=in_memory –work_dir=/root/mesos/data –zk=zk://${ip}/mesos &

五、安装启动marathon

  1. 解压marathon-1.1.1.tgz
  2. 启动:nohup ./start –master zk://IP/mesos−−zkzk://{IP}/marathon &

六、启动mesos-slave:

  1. nohup mesos-slave –log_dir=/root/mesos/logs1 –work_dir=/root/mesos/data1 –master=zk://${IP}/mesos &

http://blog.csdn.net/ppt0501/article/details/51363246

相关推荐