ERROR org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode: Exception in doCheckpoint

grep -ri Exception得到如下信息:

/home/appleyuchi/bigdata/hadoop-3.2.1/logs/hadoop-appleyuchi-secondarynamenode-Desktop.log

2020-05-17 21:23:32,070 ERROR org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode: Exception in doCheckpoint

解决方案:

①去core-site.xml中获取hadoop.tmp.dir的取值

   
        hadoop.tmp.dir
        file:/home/appleyuchi/bigdata/hadoop_tmp
        Abase for other temporary directories.
   

 

②rm -r /home/appleyuchi/bigdata/hadoop_tmp

③重启hadoop集群

该报错消失

你可能感兴趣的:(Hadoop)