Skip to content

Instantly share code, notes, and snippets.

@lakshya-sky
Last active February 23, 2020 15:07
Show Gist options
  • Save lakshya-sky/708db39b90f11c29e59a7ad7c3805178 to your computer and use it in GitHub Desktop.
Save lakshya-sky/708db39b90f11c29e59a7ad7c3805178 to your computer and use it in GitHub Desktop.

Install Mesos and Marathon in Ubuntu 16.04

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv DF7D54CBE56151BF
DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]')
CODENAME=$(lsb_release -cs)
echo "deb http://repos.mesosphere.com/${DISTRO} ${CODENAME} main" | sudo tee /etc/apt/sources.list.d/mesosphere.list
sudo apt-get -y update
sudo apt-get -y install mesos

Downloadn and Run Zookeeper

wget http://apache.forsale.plus/zookeeper/stable/apache-zookeeper-3.5.7-bin.tar.gz
cd ~/Downloads/apache-zookeeper-3.5.7-bin/bin
sudo zkServer.sh start-foreground

if any thing related to jdk 9

cd /usr/lib/jvm/java-9-openjdk-amd64

sudo ln -s lib conf

Start Services

sudo mesos-master --zk=zk://127.0.0.1:2181/mesos --work_dir=/var/tmp/mesos --quorum=1
sudo mesos-slave --master=zk://localhost:2181/mesos --work_dir=/tmp/mesos
wget http://downloads.mesosphere.com/marathon/v1.3.1/marathon-1.3.1.tgz
tar xzf marathon-1.3.1.tgz
cd marathon-1.3.1/bin
sudo ./start --master zk://localhost:2181/mesos --zk zk://localhost:2181/marathon --http_port=7070
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment