secondarynamenode异常
2014-08-26 22:06:12,793 ERROR org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode: Exception in doCheckpoint java.io.IOException: Inconsistent checkpoint fields. LV = -56 namespaceID = 882296183 cTime = 0 ; clusterId = CID-aad188d4-cfdb-43f3-b4de-a984cf1ce13c ; blockpoolId = BP-1451266752-127.0.0.1-1409061619920. Expecting respectively: -56; 1635087013; 0; CID-d0c32680-a068-4e60-9ab8-35da315668f7; BP-380223626-127.0.0.1-1409056412869. at org.apache.hadoop.hdfs.server.namenode.CheckpointSignature.validateStorageInfo(CheckpointSignature.java:135) at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.doCheckpoint(SecondaryNameNode.java:518) at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.doWork(SecondaryNameNode.java:383) at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode$1.run(SecondaryNameNode.java:349) at org.apache.hadoop.security.SecurityUtil.doAsLoginUserOrFatal(SecurityUtil.java:415) at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.run(SecondaryNameNode.java:345) at java.lang.Thread.run(Thread.java:745)
原因:
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 节点之间的数据同步。