parolkar
parolkar

Reputation: 369

Setting up Mesos on CentOS

I tried to install the latest release tarball of Mesos on CentOS 6.4 with no luck. It ended up in all sorts of failures in trying to find jvm & jni bindings. Is there any instructions on how to install Mesos on RHEL or CentOS ?

Upvotes: 1

Views: 3814

Answers (2)

user1225054
user1225054

Reputation:

For those who prefer installing from RPM's, here is a link to a number of different releases for different Linux flavors: http://mesosphere.io/downloads/ For example, for Centos64:

wget http://downloads.mesosphere.io/master/centos/6/mesos_0.14.2_x86_64.rpm
sudo rpm -Uvh mesos_0.14.2_x86_64.rpm

I also had to set my LD_LIBRARY_PATH, though to a slightly different value. Check yours.

Python bindings can also be downloaded from the first link above:

wget http://downloads.mesosphere.io/master/centos/6/mesos_0.14.2_x86_64.egg
sudo easy_install mesos_0.14.2_x86_64.egg

Upvotes: 1

parolkar
parolkar

Reputation: 369

I couldn't find any instructions around so I thought I would troubleshoot all through my way and thought of documenting it here so it can save your time.

First things first, load your CentOS box with essential build tools to get started

$ sudo yum groupinstall "Development tools"

Get Java and python dependencies installed

$ sudo yum install java-1.6.0-openjdk.x86_64  java-1.6.0-openjdk-devel.x86_64 python python-devel libcurl libcurl-devel

Get the latest Mesos tarball

$ wget http://mirror.nus.edu.sg/apache/mesos/0.13.0/mesos-0.13.0.tar.gz
$ tar -xzvf mesos-0.13.0.tar.gz
$ cd mesos-0.13.0

Before you can build Mesos, you need to set correct JAVA binding paths

$ export  JAVA_HOME=/usr
$ export  JAVA_LDFLAGS="-L/usr/lib/jvm/java-1.6.0/jre/lib/amd64/server -R/usr/lib/jvm/java-1.6.0/jre/lib/amd64/server -ljvm"
$ export  JAVA_CPPFLAGS="-I/usr/lib/jvm/java-1.6.0/include -I/usr/lib/jvm/java-1.6.0/include/linux"
$ export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0/jre/lib/amd64/server:$LD_LIBRARY_PATH

Configure and build it

$ ./configure
$ make

After you have built Mesos, it is advisable that you build and run the tests, this will make sure that what you have installed meets all the requirements

$ make check

If the checks are successful, You are just one step away from installing it in your system installation paths

$ make install

To learn how to use Mesos , go here http://mesos.apache.org/gettingstarted/

Upvotes: 3

Related Questions