读书人

Hadoop增添节点datanode

发布时间: 2012-12-24 10:43:13 作者: rapoo

Hadoop添加节点datanode
1.部署hadoop
和普通的datanode一样。安装jdk,ssh
2.修改host
和普通的datanode一样。添加namenode的ip
3.修改namenode的配置文件conf/slaves
添加新增节点的ip或host
4.在新节点的机器上,启动服务

<property>  <name>dfs.balance.bandwidthPerSec</name>  <value>1048576</value>  <description>        Specifies the maximum amount of bandwidth that each datanode        can utilize for the balancing purpose in term of        the number of bytes per second.  </description></property>


注意:
1. 必须确保slave的firewall已关闭;
2. 确保新的slave的ip已经添加到master及其他slaves的/etc/hosts中,反之也要将master及其他slave的ip添加到新的slave的/etc/hosts中

读书人网 >编程

热点推荐