Zookeeper之Error contacting service. It is probably not running.

安裝ZooKeeper時,無論是修改zoo.cfg;還是myid,都檢查了幾遍都沒有錯誤。但是開啟Zookeeper服務時出現:

Error contacting service. It is probably not running.

後來查看日誌發現,是我的hosts文件,之前手誤出錯了,變成了27.0.0.1 

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

 

Tags: