Skip to content

Instantly share code, notes, and snippets.

@DominikDary
Last active April 6, 2019 08:37
Show Gist options
  • Save DominikDary/b5c899b9baf0e49f5ebb0ac79bb8c257 to your computer and use it in GitHub Desktop.
Save DominikDary/b5c899b9baf0e49f5ebb0ac79bb8c257 to your computer and use it in GitHub Desktop.
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