Requirements
- hadoop-0.20.x for HDFS
- Sun Java JDK 1.5.x or higher version
- ssh must be installed and sshd must be running to manage remote BSP daemons.
Standalone mode
Distributed mode
hama-site.xml
<configuration> <property> <name>bsp.master.address</name> <value>mydomain.com:40000</value> <description>The address of the bsp master server. Either the literal string "local" or a host:port for distributed mode </description> </property> <property> <name>fs.default.name</name> <value>hdfs://mydomain.com:9000/</value> <description> The name of the default file system. Either the literal string "local" or a host:port for HDFS. </description> </property> <property> <name>hama.zookeeper.quorum</name> <value>mydomain.com</value> <description>Comma separated list of servers in the ZooKeeper Quorum. For example, "host1.mydomain.com,host2.mydomain.com,host3.mydomain.com". By default this is set to localhost for local and pseudo-distributed modes of operation. For a fully-distributed setup, this should be set to a full list of ZooKeeper quorum servers. If HAMA_MANAGES_ZK is set in hama-env.sh this is the list of servers which we will start/stop zookeeper on. </description> </property> </configuration>
Run the BSP Examples
$ {$HAMA_HOME}/bin/hama jar build/hama-0.2.0-dev-examples.jar pi or test