The playa-mesos provides an easy way to try Mesos, Marathon and Chronos within a virtual machine using Vagrant.
These requirements are just to run Chronos. You will need additional packages to build Chronos from source (see the Building from Source section below).
Mesosphere provides builds for Mesos and Chronos for major Linux distributions and OS X on their downloads page.
Use the latest tagged Chronos release with Mesos 0.20+ as follows:
curl -0 https://github.com/mesos/chronos/archive/2.3.4.tar.gz
tar xvf 2.3.4.tar.gz
Follow these steps to build Chronos from source. This configuration assumes you already have Mesos installed on the same host (see Mesosphere link above to get a Mesos package).
These requirements are to build and run Chronos.
Install Node first. On OSX, try brew install node.
Start up Zookeeper, Mesos master, and Mesos slave(s). Then try
export MESOS_NATIVE_LIBRARY=/usr/local/lib/libmesos.so
git clone https://github.com/mesos/chronos.git
cd chronos
mvn package
java -cp target/chronos*.jar org.apache.mesos.chronos.scheduler.Main --master zk://localhost:2181/mesos --zk_hosts localhost:2181
MESOS_NATIVE_LIBRARY: Absolute path to the native mesos library. This is usually /usr/local/lib/libmesos.so on Linux and /usr/local/lib/libmesos.dylib on OSX.MESOS_LAUNCHER_DIR: Absolute path to the src subdirectory of your mesos build, such that the shell executor can be found (e.g. If mesos was built in /Users/florian/airbnb_code/mesos/build then the value for this variable would be /Users/florian/airbnb_code/mesos/build/src).MESOS_KILLTREE: Absolute path to the location of the killtree.sh script. (e.g. /Users/florian/airbnb_code/mesos/src/scripts/killtree.sh)If you're using the installer script this should be setup for you.
We've included some example run scripts, but the basic syntax for launching chronos is:
java -cp chronos.jar --master zk://127.0.0.1:2181/mesos --zk_hosts 127.0.0.1:2181
Please note that you need to have both Mesos and Zookeeper running for this to work!
For more information on configuration options, please see Configuration.
Example runit run script
Example local run script