hadoop介绍 - Hadoop secondarynamenode concept

来源:互联网 发布:民航货运员 知乎 编辑:程序博客网 时间:2024/06/15 23:26
On hadoop0.23.0 release there is no conf/masters file where we used to specify the host address where secondary name node needs to start.

The documentation for 0.23 is a bit sparse and I had to dig through the code. In the DFSConfigKeys.java the below variables have been defined. Set the dfs.namenode.secondary.http-address key to ip:port in hdfs-site.xml and start the secondary namenode using the sbin/hadoop-daemon.sh start secondarynamenodecommand. Run jps command to check if the secondary namenode is running and also make sure to check the log file also for any errors.
public static final String DFS_NAMENODE_SECONDARY_HTTP_ADDRESS_KEY = "dfs.namenode.secondary.http-address";
Secondary NN is being called CheckPoint NN. But, the code is still using Secondary NN and people still refer it as Secondary NN.
From the description of the HDFS-2141 Jira which is related to 0.23 release.
Active and Standby are the state of the NameNode. While Backup and CheckPoint are the name/role of the daemons that are started.

refer:    http://stackoverflow.com/questions/8501043/regarding-hadoop-secondarynamenode-concept