Hadoop dual namenode initialization

1. On each node of the
journalnode , first hadoop-daemon.sh start journalnode
2. On the first namenode
hadoop namenode -format
hadoop-daemon.sh start namenode
3. On the second namenode,
hdfs namenode -bootstrapStandby
hadoop-daemon. sh start namenode
4.
hdfs haadmin -transitionToActive nn1 --forcemanual on the first namenode
5. Start datanode
on the first namenode start-all.sh

Guess you like

Origin blog.csdn.net/woailp___2005/article/details/79622215