您的位置:首页 > 运维架构 > Apache

apache-hama集群配置

2016-05-14 17:18 615 查看
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查看线程
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  hama