Uncategorized

Run mesos and marathon on 2 node.

on All server:

echo ‘deb http://repos.mesosphere.io/ubuntu trusty main’ > /etc/apt/sources.list.d/mesosphere.list

 

apt-key adv –keyserver keyserver.ubuntu.com –recv E56151BF

apt-get install software-properties-common

add-apt-repository ppa:webupd8team/java

apt-get update

apt-get install oracle-java8-installer

 

Mesos Master

sudo apt-get install mesosphere

echo ‘zk://10.147.65.119:2181/mesos’ > /etc/mesos/zk

echo ‘zk://10.147.65.119:2181/mesos’ > /etc/marathon/conf/master

echo ‘zk://10.147.65.119:2181/marathon’ > /etc/mesos/conf/zk

 

echo ‘MyCluster’ > /etc/mesos-master/cluster

echo ‘ip’ > /etc/mesos-master/ip

echo ‘ip’ > /etc/mesos-master/quorum

echo ‘1’ > /etc/mesos-master/quorum

stop mesos-slave

manual | sudo tee /etc/init/mesos-slave.override

# Zookeeper

echo ‘1’ > /etc/zookeeper/conf/myid

vim /etc/zookeeper/conf/zoo.cfg

server.1=192.168.122.198:

Mesos Slave

sudo apt-get install mesos

echo manual | sudo tee /etc/init/zookeeper.override

echo manual | sudo tee /etc/init/mesos-master.override

stop mesos-master

echo ‘10.147.65.119’ | tee /etc/mesos-slave/ip

cp /etc/mesos-slave/ip /etc/mesos-slave/hostname

echo ‘zk://10.147.65.119:2181/mesos’ > /etc/mesos/zk

 

apt-get install docker.io

 

echo ‘docker,mesos’ > /etc/mesos-slave/containerizers

echo ’10mins’ > /etc/mesos-slave/executor_registration_timeout

 

 

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s