Skip to content

mesosphere/scala-sbt-mesos-framework.g8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Write a Scala Mesos Framework in 7 Steps

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.

Before we start

Procedure

  1. 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
    
  2. Change into the new project directory

     $ cd my-great-framework
    
  3. Inspect the template output with your favorite editor. The build definition is in project/Build.scala and the framework implementation is in src/main/scala/.

  4. Edit the framework's configuration file (src/main/resources/application.conf) to reflect the master's private IP address on the virtual machine

     io.mycompany {
       mesos {
         master = "10.141.141.10:5050"
       }
     }
    
  5. Create and start a virtual machine running the Mesos master and the Mesos slave

     $ vagrant up
    
  6. Run your new framework with SBT

     $ sbt run
    
  7. Observe STDOUT as your framework registers with the Mesos master and begins receiving resource offers

Releases

No releases published

Packages

No packages published