Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This gist explains about how to run locally on Mac OsX Mesos and Marathon.

This gist explains about how to run locally on Mac OsX Mesos and Marathon.

Prerequisites:

  • brew install wget git autoconf automake libtool subversion maven xz
  • And install xcode via apple app store
  • brew cask install java8
  • export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home
    export PATH=$JAVA_HOME/bin:$PATH```
    
    

install and start zookeeper

  • brew install zookeeper
  • zkServer start

clone marathon repo

  • git clone https://github.com/mesosphere/marathon.git
  • cd marathon

Use Mesos Version Manager to install Mesos

  • tools/mvm.sh 1.6.1

start Mesos master

nohup mesos-master --work_dir=/tmp/mesos/work --zk=zk://localhost:2181/mesos --quorum=1 --domain='{"fault_domain": {"region": {"name": "local"}, "zone": {"name": "a"}}}' > master.log --ip=127.0.0.1 &

start Mesos agent

nohup mesos-agent --ip=127.0.0.1  --work_dir=/tmp/mesos/work --master=zk://localhost:2181/mesos --domain='{"fault_domain": {"region": {"name": "local"}, "zone": {"name": "a"}}}' --containerizers=mesos > agent.log &

export MARATHON_MASTER=zk://127.0.0.1:2181/mesos
sbt run
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.