Installing mesos

From ImageWiki

(Difference between revisions)
Jump to: navigation, search
(Building Mesos)
Line 27: Line 27:
  cd build
  cd build
  ../configure  
  ../configure  
-
  make -j 32 # FAILS!
+
  make -j 32
  # Run test suite.
  # Run test suite.
Line 34: Line 34:
  # Install (***Optional***).
  # Install (***Optional***).
  make install
  make install
-
 
===Testing===
===Testing===

Revision as of 13:56, 5 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

Status

Currently only installed on compute01-diku-image.

Building Mesos

# Select Java SDK
export JAVA_HOME=/usr/lib64/jvm/java
# 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