apache-hama集群配置

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查看线程

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值