Installing mesos

From ImageWiki

Jump to: navigation, search

Contents

Mesos

Getting Mesos

Download the lastest version of Mesos and follow the instructions on Mesos getting started.

Our current installation uses Mesos 0.16.0.

Installing the prerequisites

sudo zypper refresh
sudo zypper install java-1_7_0-openjdk-devel
sudo zypper install python-devel
sudo zypper install libcurl-devel
sudo zypper install zlib-devel
sudo zypper install libopenssl-devel
sudo zypper install cyrus-sasl-devel
sudo zypper install autoconf
sudo zypper install libtool
sudo zypper install git

Status

Currently only installed on compute01-diku-image.

Building Mesos

I cloned the source using git

git clone http://git-wip-us.apache.org/repos/asf/mesos.git
# Select Java SDK
export JAVA_HOME=/usr/lib64/jvm/java
# Bootstrap (***Skip this if you are not building from git repo***).
./bootstrap
# Configure and build.
mkdir build
cd build
../configure 
make -j 32
# Run test suite.
make -j check
# Install (***Optional***).
sudo make install

Testing

# Change into build directory.
$ cd build
# Start mesos master.
$ ./bin/mesos-master.sh --ip=127.0.0.1
# Start mesos slave.
$ ./bin/mesos-slave.sh --master=127.0.0.1:5050
# Visit the mesos web page.
$ http://127.0.0.1:5050
# Run C++ framework (***Exits after successfully running some tasks.***).
$ ./src/test-framework --master=127.0.0.1:5050
# Run Java framework (***Exits after successfully running some tasks.***).
$ ./src/examples/java/test-framework 127.0.0.1:5050
# Run Python framework (***Exits after successfully running some tasks.***).
$ ./src/examples/python/test-framework 127.0.0.1:5050

Torque

Getting Torque

Torque can be downloaded from [1]

Installing the prerequisites

sudo zypper install libxml2-devel

Status

Currently only installed on compute01-diku-image.


Building Torque

./configure --with-default-server=<name of default server>

TODO: Consider if we should choose more settings such as enabling the GUI.


make -j 32
sudo make install

TODO: Consider using the make package option.

Personal tools