1、部署环境
Master:blade6
Slaves:blade10blade13
2、准备工作
(1) g++ 4.1 or higer
安装命令:sudo yum install gcc-c++
(2)Java JDK 1.6 or higher.
系统一般自带
(3) Python 2.6 (for the Mesos web UI).
系统一般自带。
(4) Python 2.6 developer packages
安装命令:yum install python-devel
(5) cppunit (for building zookeeper)
安装命令:sudo yum installcppunit-devel
3、mesos下载
本人下载的Mesos-0.9.0
4、安装
依次执行
./bootstrap./configure --with-webui--with-java-home=$JAVA_HOME --with-java-headers=$JAVA_HOME/include/--with-included-zookeepermakesudo make install
遇到一个错误
checking forcurl_global_init in -lcurl... noconfigure:error: cannot find libcurl ------------------------------------------------------------------- You can avoid this with --without-curl, butit will mean executor and task resources cannot be downloaded overhttp. -------------------------------------------------------------------
解决方法:
sudo yum install libcurl-devel
5、运行
(1)启动master
在节点blade6 mesos目录下执行
bin/mesos-master.sh
(2)启动slave
依次在节点blade10、blade13 mesos目录下执行
bin/mesos-slave.sh --master=blade6:5050
查看mesos master信息,浏览器访问