Last active
August 29, 2015 14:05
-
-
Save mohitarora/63864128c451d93b15ce to your computer and use it in GitHub Desktop.
mesos-setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Docker | |
sudo yum -y install docker-io | |
# Add the repository for Zookeeper package | |
sudo rpm -Uvh http://archive.cloudera.com/cdh4/one-click-install/redhat/6/x86_64/cloudera-cdh-4-0.x86_64.rpm | |
# Add the repository for mesos and marathon | |
sudo rpm -Uvh http://repos.mesosphere.io/el/6/noarch/RPMS/mesosphere-el-repo-6-2.noarch.rpm | |
# Install ZooKeeper, Mesos and Marathon | |
sudo yum install -y java-1.7.0-openjdk zookeeper-server python-setuptools mesos marathon | |
# Setup Zookeeper | |
sudo service zookeeper-server init | |
echo 1 | sudo tee -a /var/lib/zookeeper/myid >/dev/null | |
# We need to Start mesos-slave instances with the flag --containerizers=docker,mesos | |
echo 'docker,mesos' | sudo tee -a /etc/mesos-slave/containerizers >/dev/null | |
echo '5mins' | sudo tee -a /etc/mesos-slave/executor_registration_timeout >/dev/null | |
# Add a host entry for your machine | |
echo '127.0.0.1 vagrant-centos65.vagrantup.com' | sudo tee -a /etc/hosts >/dev/null | |
# If you are upgrading to 0.7.0-SNAPSHOT because marathon 0.7.0 is not released yet, please follow instructions at https://beingasysadmin.wordpress.com/2014/08/31/upgrading-marthon-for-mesos-native-docker-support/ | |
# Start Docker, Marathon, Mesos Master, Mesos Slave and ZooKeeper | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment