hadoop集群配置完成后才能配置apache-hama
配置apache-hama-0.7.0
1、在hama-env.sh文件中添加JAVA_HOME
2、在groomservers添加子节点的hostName
slave01
slave02
slave04
slave05
3、配置hama-site.xml文件
<configuration>
<property>
<name>bsp.master.address</name>
<value>master: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://master: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>master,slave01,slave02,slave04,slave05</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>
<property>
<name>hama.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
</configuration>
我的集群中安装了zookeeper集群,所以在hama.zookeeper.quorum中我配置了hostName信息,如果没有安装zookeeper集群可以不配置此信息
至上配置完成!
在apache-hama-0.7.0根目录下执行命令:
bin/start-all.sh
用jps查看线程