Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mesos Master Debian/Ubuntu
### Good start for mesos. A great thanks to the guys from mesosphere https://mesosphere.com/docs/getting-started/debian-install/
#! /bin/bash
# Add Mesosphere Ubuntu 14.04 Repo
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF
DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]')
CODENAME=$(lsb_release -cs)
# Add the repository
echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME} main" | sudo tee /etc/apt/sources.list.d/mesosphere.list
sudo apt-get -y update
#install from
sudo apt-get -y install mesos marathon
#run it, #This starts the master with the registry in-memory. check thte management console: http://localhost:5050
/usr/local/sbin/mesos-master --registry=in_memory
####Launch a slave
sudo /usr/local/sbin/mesos-slave --master=$MASTER_IP:5050
##### Run a task
mesos-execute --master="localhost:5050" --name="foobar" --command="sleep 5"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.