OpenSuSE and Marathon

Working with Apache Mesos, it seems like something extra is always needed and unfortunately, the requirements are always…OpenSuSE friendly.

That’s okay though, we’ll get through this. There is a copy-and-paste solution at the bottom, so if you wanna skip down there, then go for it.

Marathon is a framework that runs on top of Mesos.

So, let’s install it!


git clone https://github.com/mesosphere/marathon
cd ./marathon
sbt assembly

What’s this?

sbt assembly
If 'sbt' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf sbt

Well, poop….is it in the repos?


zypper se sbt

Nope.

Well, there are Red Hat repos, so, we’ll bum off of them:

zypper ar -r https://dl.bintray.com/sbt/rpm/ sbt
zypper in sbt

Once completed go back as your normal user and install it:

#sbt assembly
#cool, build instructions are incorrect. I've opened a bug: https://jira.mesosphere.com/projects/MARATHON/issues/MARATHON-7269
sbt packageRpmSystemd

And still an issue…okay:


[warn] three warnings found
[error] javac: invalid source release: 1.8
[error] (marathon/compile:compileIncremental) javac returned nonzero exit code
[error] Total time: 123 s, completed Apr 25, 2017 1:13:42 PM

Just install javac 1.8:


zypper in java-1_8_0-openjdk-devel

Build it and install it with zypper\rpm (just break the dependencies if you already have java 1.8 installed).

Okay, now let’s try to run marathon:


marathon --master local --zk zk://localhost:2181/marathon

And…no zookeeper. That is just an easy jar to download and install:


wget http://www.trieuvan.com/apache/zookeeper/current/zookeeper-3.4.10.tar.gz
tar -xf zookeeper-3.4.10.tar.gz
cd zookeeper-3.4.10
cp ./conf/zoo_sample.cfg ./conf/zoo.cfg
./bin/zkServer.sh start

With everything in place, you should be able to navigate to: http://localhost:8080 and be able to start some work.

If you’re getting permission errors, then check them (or just run everything as root, because no one cares about security).

Copy and paste version:

As root:

zypper ar -r https://dl.bintray.com/sbt/rpm/ sbt_repo
zypper in java-1_8_0-openjdk java-1_8_0-openjdk-devel sbt

As user:

git clone https://github.com/mesosphere/marathon
cd ./marathon
sbt packageRpmSystemd

cd ../
wget http://www.trieuvan.com/apache/zookeeper/current/zookeeper-3.4.10.tar.gz
tar -xf zookeeper-3.4.10.tar.gz
cd zookeeper-3.4.10
cp ./conf/zoo_sample.cfg ./conf/zoo.cfg
./bin/zkServer.sh start

As root:

zypper in systemd-marathon-1.5.020170425git7473886-1.noarch.rpm #Because of the above, we can safely break dependencies.
marathon --master local --zk zk://localhost:2181/marathon

Here is the rpm if you can’t be bothered to build it yourself.

This entry was posted in Computer Science and tagged , , , . Bookmark the permalink.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.