Hadoop之路(一)------解决DataNode启动问题
作者:互联网
前言
大家在初步搭建Hadoop框架时,可能会遇到DataNode启动失败的场景,这篇文章帮助大家解决这个问题
正文
错误输出
2020-02-27 10:19:56,586 INFO org.apache.hadoop.hdfs.server.common.Storage: Lock on /tmp/hadoop-Silence/dfs/data/in_use.lock acquired by nodename 52578@localhost
2020-02-27 10:19:56,589 WARN org.apache.hadoop.hdfs.server.common.Storage: Failed to add storage directory [DISK]file:/tmp/hadoop-Silence/dfs/data
java.io.IOException: Incompatible clusterIDs in /private/tmp/hadoop-Silence/dfs/data: namenode clusterID = CID-6453dccf-48cc-473b-bba5-47bdc10979aa; datanode clusterID = CID-32a708f8-a269-4349-a154-9bcc5745bf7c
解决此问题的思路就是将/dfs/name/current目录下的VERSION文件中clusterID替换为报错中的后面那个clusterID即可
#Thu Feb 27 10:19:39 CST 2020
namespaceID=436688563
clusterID=CID-32a708f8-a269-4349-a154-9bcc5745bf7c
cTime=1582769979204
storageType=NAME_NODE
blockpoolID=BP-545711327-127.0.0.1-1582769979204
layoutVersion=-65
SilenceAtNBT
发布了104 篇原创文章 · 获赞 24 · 访问量 10万+
私信
关注
标签:10,27,clusterID,之路,Hadoop,dfs,hadoop,DataNode,2020 来源: https://blog.csdn.net/keysilence1/article/details/104531242