執行以下步驟,以幫助您將新節點啓動到正在運行的羣集中。
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