CDH5.12安裝遇到的坑
阿新 • • 發佈:2020-11-12
環境:centos7+cdh5.12
問題描述:
在搭建過的CDH機器上重新搭建CDH叢集,沒有刪除資料。導致新搭建的CDH,這兩臺DATANode啟動不了.....
特殊情況:
本人以前在這兩臺機器上搭建過CDH,所以存在版本問題
1、找到你以前搭建的datanode資料目錄,/dfs/dn/current,檢視VERSION
eg(不能啟動的datanode): storageID=DS-64482928-918c-48a6-b78c-167f4cd90218 clusterID=cluster10 cTime=0 datanodeUuid=1d881f40-21e5-4e5b-91ba-f6ade5223eb3 storageType=DATA_NODE layoutVersion=-56
eg(正常啟動的datanode): storageID=DS-64482928-918c-48a6-b78c-167f4cd90218 clusterID=cluster8 cTime=0 datanodeUuid=1d881f40-21e5-4e5b-91ba-f6ade5223eb3 storageType=DATA_NODE layoutVersion=-56
解決方法:
只需要將clusterID=cluster10改為clusterID=cluster8
2、問題描述:HDFS新增 NFS Gateway 角色例項啟動失敗問題
錯誤描述1:
unlimited Cannot connect to port 111. No portmap or rpcbind service is running on this host. Please start portmap or rpcbind service before attempting to start the NFS Gateway role on this host.
解決方法:
yum -y install nfs-utils yum -y install rpcbind systemctl start rpcbind systemctl status rpcbind
錯誤描述2:
NFS service is already running on this host. Please stop the NFS service run 表示你啟動了nfs,和CDH衝突
解決方法:
service nfs stop