2012-09-27 33 views
0

當我嘗試從客戶端連接到HBase集羣時,出現了一個奇怪的問題。客戶端似乎正在獲取連接的HOSTNAME和IP,並且無法連接到主服務器。以下是日誌文件中的相關部分:從客戶端引用時,Hbase主名錯誤

12/09/27 13:28:41 INFO client.HConnectionManager$HConnectionImplementation: getMaster attempt 0 of 10 failed; retrying after sleep of 1000 
java.net.UnknownHostException: **[email protected]** 
     at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.<init>(HBaseClient.java:224) 
     at org.apache.hadoop.hbase.ipc.HBaseClient.getConnection(HBaseClient.java:954) 
     at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:816) 
     at org.apache.hadoop.hbase.ipc.WritableRpcEngine$Invoker.invoke(WritableRpcEngine.java:141) 
     at $Proxy4.getProtocolVersion(Unknown Source) 
     at org.apache.hadoop.hbase.ipc.WritableRpcEngine.getProxy(WritableRpcEngine.java:174) 
     at org.apache.hado 

有沒有人遇到過這個問題?

回答

0

看來你的/ etc/hosts文件有問題