执行以下步骤,以帮助您将新节点启动到正在运行的群集中。
1> Update the /etc/hadoop/conf/slaves list with the new node-name
2> Sync the full configuration /etc/hadoop/conf to the new datanode from the Namenode. If the file system isn't shared.
2> Restart all the hadoop services on Namenode/Tasktracker and all the services on the new Datanode.
3> Verify the new datanode from the browser http://namenode:50070
4> Run the balancer script to readjust the data between the nodes.
如果您不想在NN上重新启动服务,那么在添加新节点时。我会说,将名称提前添加到从站配置文件。所以他们报告为停用/死亡节点,直到它们可用。遵循上面的DataNode只有步骤。再次,这不是最好的做法。
我是否需要更新所有节点上的从站文件或仅在NameNode上更新? – Tariq
我是否需要在所有节点上更新/ etc/hosts文件,还是仅针对NameNodes? – Tariq