CDH遇到的坑

启动datanode报错,由于该主机之前安装过CDH,需要清空原有的datanode配置

Failed to add storage directory [DISK]file:/dfs/dn
org.apache.hadoop.hdfs.server.common.InconsistentFSStateException: Directory /dfs/dn is in an inconsistent state: Can't format the storage directory because the current directory is not empty.
Failed to add storage directory [DISK]file:/dfs/dn
java.io.IOException: Incompatible clusterIDs in /dfs/dn: namenode clusterID = cluster21; datanode clusterID = CID-54b19dfb-b3f7-4b8a-99a5-5ddf05609de6

在之前安装过agent的主机上重新运行主机,需要清空原有cm_guid数据,再重启agent
rm -rf /var/lib/cloudera-scm-agent/cm_guid
systemctl restart cloudera-scm-agent

ERROR   76996 MainThread agent  
Error, CM server guid updated, expected d46c4974-5ff0-43cb-ad6f-0d47e08b15b9, received 2a81f36e-f78a-4aac-9000-ae6e93324c7a
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容