Installing mesos

From ImageWiki

(Difference between revisions)
Jump to: navigation, search
(Installing the prerequisites)
(Building Mesos)
Line 23: Line 23:
  # Select Java SDK
  # Select Java SDK
  export JAVA_HOME=/usr/lib64/jvm/java
  export JAVA_HOME=/usr/lib64/jvm/java
 +
 +
If cloned from git then
 +
# Bootstrap (***Skip this if you are not building from git repo***).
 +
$ ./bootstrap
  # Configure and build.
  # Configure and build.

Revision as of 14:48, 13 March 2014

Contents

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

# Select Java SDK
export JAVA_HOME=/usr/lib64/jvm/java

If cloned from git then

# 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***).
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
Personal tools