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
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
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