天天看點

記錄CDH安裝的一個坑:could not contact scm server at localhost:7182, giving up

錯誤:

  在web界面安裝 agent那一步,抛錯,單擊資訊檢視如下

記錄CDH安裝的一個坑:could not contact scm server at localhost:7182, giving up

初步分析:

是用localhost:7182 無法連接配接scm server

嘗試解決辦法:

1.檢查關閉防火牆

2.檢查python版本2.6.6

3.檢查/etc/hosts檔案,重新開機網絡service network restart

4.檢查/etc/sysconfig/network檔案,重新開機網絡service network restart

5.檢查/etc/resolv.conf檔案,重新開機網絡service network restart

6.檢查/etc/sysconfig/network-scripts/ifcfg-eth0檔案,重新開機網絡service network restart

7.scm server機器上檢查7182端口是否存在: netstat -nlp|grep 7182

仔細分析:

100.1.168.192.in-addr.arpa domain name pointer localhost

這句話的IP的本機ip192.168.1.100的倒序寫法,甚是奇怪!

其實是DNS反向解析。

解決做法:

mv /usr/bin/host /usr/bin/host.bak