cdh 當某個服務磁盤滿了,無法啓動cloudera-scm-agent或cloudera-scm-server

問題描述:一開始不知道是磁盤慢了,於是想重啓下一下 cloudera-scm-agent start。提示磁盤滿了。於是清理磁盤後,在重啓,就發現,報錯!無法重啓!!!!報個錯誤也是莫名其妙,重來沒遇到過!就幾個字。。。。感覺是亂碼一樣。

問題分析:shell debug:sh -x cloudera-scm-agent

cat /opt/cloudera-manager/cm-5.8.0/run/cloudera-scm-agent/cloudera-scm-agent.pid
發現進程pid爲空,內容爲空!!出現莫名奇妙的錯誤!

解決方法1: vim /opt/cloudera-manager/cm-5.8.0/run/cloudera-scm-agent/cloudera-scm-agent.pid  

增加:12343 (隨便填寫一個進程id),然後就可以重啓啦。

解決方法2:rm -f  /opt/cloudera-manager/cm-5.8.0/run/cloudera-scm-agent/cloudera-scm-agent.pid   刪除,重啓會自動新建哈哈。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章