Existing hadoop cluster: hadoop1-5, adding a new data node: hadoop6.
1. Clone an existing data node VM to hadoop6.
2. Edit /etc/hosts file to include hadoop6 ip address and hostname, then copy to the rest nodes in the cluster.
3. Edit slaves file to include hadoop6 hostname, then copy to the rest nodes in the cluster.
4. Delete HADOOP_DATA_DIR on hadoop6.
5. Start data node on hadoop6.
hadoop-daemons.sh --config $HADOOP_CONF_DIR --script hdfs start datanode
6. Balance data node
hdfs balancer
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment