This is a giter8 template. The result of applying this template is a bare-bones Apache Mesos framework in Scala using SBT for builds and Vagrant for testing on a singleton cluster.
- You need git
- You need giter8
- You need SBT
- You need vagrant
- You need virtual box
-
Clone this giter8 template
$ g8 mesosphere/scala-sbt-mesos-framework package [com.domain]: io.mycompany name [My Mesos Framework]: My Great Framework Template applied in ./my-great-framework
-
Change into the new project directory
$ cd my-great-framework
-
Inspect the template output with your favorite editor. The build definition is in
project/Build.scala
and the framework implementation is insrc/main/scala/
. -
Edit the framework's configuration file (
src/main/resources/application.conf
) to reflect the master's private IP address on the virtual machineio.mycompany { mesos { master = "10.141.141.10:5050" } }
-
Create and start a virtual machine running the Mesos master and the Mesos slave
$ vagrant up
-
Run your new framework with SBT
$ sbt run
-
Observe STDOUT as your framework registers with the Mesos master and begins receiving resource offers