Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
mvn clean install -Phadoop1 -Dhadoop.version=1.x.x -Dmesos.version=0.1820.20

The groom servers will be set up by Mesos during execution of a job. In order for Mesos to do this, you will need to upload a built version of Hama to a place where the Mesos slaves can find it, such as the HDFS:

No Format
hadoop fs -put hama-0.7.0.0-SNAPSHOT.tar.gz /hama-7.0.0.tar.gz

Configuration

There are several Mesos related properties that must be set in hama-site.xml:

...

Manually distributing the configuration is not necessary. Hama and Mesos will distribute the configuration and provide overrides where necessary.

Additionally, there There are also several other properties that will need to be considered when setting up hama for the first time:

Property

Default Value

Description

hama.tmp.dir

/tmp/hama-${user.name}

Temporary directory on the local filesystem.

hama.zookeeper.quorum

 

Comma separated list of servers in the Zookeeper Quorum

hama.zookeeper.property.clientPort

21810 2181

The port to which the zookeeper clients connect

For a working example of the hama-site.xml and to avoid some configuration mistakes you can check this blog post for installing Hama on Mesos

Starting The BSPMaster

With Hama on Mesos you only need to set up and start the BSPMaster. After setting the configuration the bsp master may be started:

...

No Format
$HAMA_HOME/bin/hama jar hama-examples-x.x.x.jar gen fastgen -v 100 -e 10 -o randomgraph -t 2 -of json

Then verify that Mesos tasks are being created run. Do this by navigating to the Mesos status page and clicking on the id of the Hama framework. There should be tasks listed in either the active or completed tasks section.

...