secondarynamenode异常
-- ::, ERROR org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode: Exception in doCheckpoint
java.io.IOException: Inconsistent checkpoint fields.
LV = - namespaceID = cTime = ; clusterId = CID-aad188d4-cfdb-43f3-b4de-a984cf1ce13c ; blockpoolId = BP--127.0.0.1-.
Expecting respectively: -; ; ; CID-d0c32680-a068-4e60-9ab8-35da315668f7; BP--127.0.0.1-.
at org.apache.hadoop.hdfs.server.namenode.CheckpointSignature.validateStorageInfo(CheckpointSignature.java:)
at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.doCheckpoint(SecondaryNameNode.java:)
at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.doWork(SecondaryNameNode.java:)
at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode$.run(SecondaryNameNode.java:)
at org.apache.hadoop.security.SecurityUtil.doAsLoginUserOrFatal(SecurityUtil.java:)
at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.run(SecondaryNameNode.java:)
at java.lang.Thread.run(Thread.java:)
原因:
hdfs-site.xml:
<name>dfs.http.address</name>
<value>{your_namenode_ip}:50070</value>
文件中此属性没有配置,second NameNode 无法从NameNode 获取数据。(HTTP的方式获取数据)
此时second NameNode 节点下 :{hadoop.tmp.di}/dfs/namesecondary/current/ 目录下的数据为空
因为无法完成和NameNode 节点之间的数据同步。