DEPRECATED: This project has been merged with the mesomatic-examples project; as such, it is no longer maintained ...
A 'Hello, World' for Clojure and Mesos using Mesomatic
About ↟
This example project demonstrates a minimal "Hello, World" Mesos framework for Clojure using the Mesomatic library. This example covers only very basic usage of Mesos.
Other places to go for learning more about how to use Mesomatic:
- An example project that follows in the tradition of the Java, and Python Mesos examples
- Bundes - an actual, full Mesomatic application - this is the canonical example of Mesosmatic and one of the significant drivers for its development
Dependencies ↟
Mesomatic depends upon having the following installed and, where applicable, running on your machine (or cluster):
- Java
- Maven
lein
- The native Mesos library (matching the version used in this project).
The latest version of this example is built against Mesos 0.27.0 and mesomatic 0.27.0-r0. You may look at previous releases to see if there are older versions of Mesos supported (should you be interested).
All other dependencies (including the Java bindings) are downloaded automatically by lein
when you run the example.
Usage ↟
$ lein mesomatic 127.0.0.1:5050 framework
This example project needs access to the native Mesos library. If you get errors like the following
Failed to load native Mesos library
java.lang.UnsatisfiedLinkError: no mesos in java.library.path
then one of the techniques you may employ to address this is setting the MESOS_NATIVE_JAVA_LIBRARY
environment variable in your OS shell. For example, if you have built Mesos in /opt/mesos/0.27.0
$ export MESOS_NATIVE_JAVA_LIBRARY=/opt/mesos/0.27.0/build/src/.libs/libmesos.so
At which point you may re-try the usage example above.
Documentation ↟
The project's auto-generated documentation is available here (such that it is):
License ↟
Copyright © 2016 Duncan McGreggor
Apache License, Version 2.0.