Hi,

I am just getting started with Mesos. My goal is to run some user-submitted
code in a Docker container on my cluster. As per my understanding, I would
need to write a Scheduler that submits some tasks to the Mesos cluster and
tracks their process.

I have discovered that I can write a Scheduler in an arbitrary language
(Scala for me) using the Scheduler HTTP API <
http://mesos.apache.org/documentation/latest/scheduler-http-api/>. That
page says "most scheduler developers should use a library for their
language of choice that manages the details of the HTTP API" and links to <
http://mesos.apache.org/documentation/latest/api-client-libraries/>. (Note
that that page doesn't mention "HTTP" anywhere except in the <title>.)

The latter page lists a mesos-scala-api library <
https://github.com/nokia/mesos-scala-api> provided by Nokia, but looking at
the dependencies (libmesos.so etc.), this is not actually using the HTTP
API, is it? Also, the "Hello World" example from <
https://gist.github.com/guenter/7471695> directly imports org.apache.mesos
and works fine as is, so now I am a bit unsure about which is the way to
write a Scheduler, using the "Hello World" approach, the Nokia library or
write a client for the HTTP API myself. Any suggestions?

Thank you,
Tobias

Reply via email to