Grokbase Groups HBase user July 2013
FAQ
i modified all hostname in hadoop&hbase configuration file instead of
IP,but i receive following error ,thanks all

hbase version is
Version 0.90.6-cdh3u4,

13/07/03 11:22:34 INFO zookeeper.ClientCnxn: Session establishment complete
on server 192.168.10.22/192.168.10.22:2281, sessionid = 0x3fa28145010001,
negotiated timeout = 40000
13/07/03 11:22:36 ERROR hbase.HServerAddress: Could not resolve the DNS
name of CH35
java.lang.IllegalArgumentException: hostname can't be null
  at java.net.InetSocketAddress.checkHost(Unknown Source)
  at java.net.InetSocketAddress.<init>(Unknown Source)
  at
org.apache.hadoop.hbase.HServerAddress.getResolvedAddress(HServerAddress.java:108)
  at org.apache.hadoop.hbase.HServerAddress.(RootRegionTracker.java:82)
  at
org.apache.hadoop.hbase.zookeeper.RootRegionTracker.waitRootRegionLocation(RootRegionTracker.java:73)
  at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:841)
  at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:819)
  at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:950)
  at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:852)
  at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:819)
  at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:950)
  at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:856)
  at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:819)
  at org.apache.hadoop.hbase.client.HTable.(HTable.java:163)
  at com.testme.demo.HBaseTest.testInsert(HBaseTest.java:92)
  at com.testme.demo.HBaseTest.main(HBaseTest.java:158)

Search Discussions

  • Jean-Marc Spaggiari at Jul 3, 2013 at 6:08 pm
    Hi Huang,

    Few things.

    1), cdh3.4 is a pretty old version. You should thing about upgrading
    to a more recent version.
    2) Have you checked you hosts files? Can you ping CH35 (if it's your
    host name) from you ZK and other servers?

    JM

    2013/7/2 ch huang <justlooks@gmail.com>:
    i modified all hostname in hadoop&hbase configuration file instead of
    IP,but i receive following error ,thanks all

    hbase version is
    Version 0.90.6-cdh3u4,

    13/07/03 11:22:34 INFO zookeeper.ClientCnxn: Session establishment complete
    on server 192.168.10.22/192.168.10.22:2281, sessionid = 0x3fa28145010001,
    negotiated timeout = 40000
    13/07/03 11:22:36 ERROR hbase.HServerAddress: Could not resolve the DNS
    name of CH35
    java.lang.IllegalArgumentException: hostname can't be null
    at java.net.InetSocketAddress.checkHost(Unknown Source)
    at java.net.InetSocketAddress.<init>(Unknown Source)
    at
    org.apache.hadoop.hbase.HServerAddress.getResolvedAddress(HServerAddress.java:108)
    at org.apache.hadoop.hbase.HServerAddress.<init>(HServerAddress.java:64)
    at
    org.apache.hadoop.hbase.zookeeper.RootRegionTracker.dataToHServerAddress(RootRegionTracker.java:82)
    at
    org.apache.hadoop.hbase.zookeeper.RootRegionTracker.waitRootRegionLocation(RootRegionTracker.java:73)
    at
    org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:841)
    at
    org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:819)
    at
    org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:950)
    at
    org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:852)
    at
    org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:819)
    at
    org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:950)
    at
    org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:856)
    at
    org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:819)
    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:189)
    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:163)
    at com.testme.demo.HBaseTest.testInsert(HBaseTest.java:92)
    at com.testme.demo.HBaseTest.main(HBaseTest.java:158)
  • Michael Stack at Jul 3, 2013 at 6:08 pm
    Can you update your CDH and hbase?

    This seems pretty basic dns setup issue:

    13/07/03 11:22:36 ERROR hbase.HServerAddress: Could not resolve the DNS
    name of CH35
    java.lang.IllegalArgumentException: hostname can't be null

    Can you fix this first?

    St.Ack

    On Tue, Jul 2, 2013 at 8:29 PM, ch huang wrote:

    i modified all hostname in hadoop&hbase configuration file instead of
    IP,but i receive following error ,thanks all

    hbase version is
    Version 0.90.6-cdh3u4,

    13/07/03 11:22:34 INFO zookeeper.ClientCnxn: Session establishment complete
    on server 192.168.10.22/192.168.10.22:2281, sessionid = 0x3fa28145010001,
    negotiated timeout = 40000
    13/07/03 11:22:36 ERROR hbase.HServerAddress: Could not resolve the DNS
    name of CH35
    java.lang.IllegalArgumentException: hostname can't be null
    at java.net.InetSocketAddress.checkHost(Unknown Source)
    at java.net.InetSocketAddress.<init>(Unknown Source)
    at

    org.apache.hadoop.hbase.HServerAddress.getResolvedAddress(HServerAddress.java:108)
    at org.apache.hadoop.hbase.HServerAddress.<init>(HServerAddress.java:64)
    at

    org.apache.hadoop.hbase.zookeeper.RootRegionTracker.dataToHServerAddress(RootRegionTracker.java:82)
    at

    org.apache.hadoop.hbase.zookeeper.RootRegionTracker.waitRootRegionLocation(RootRegionTracker.java:73)
    at

    org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:841)
    at

    org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:819)
    at

    org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:950)
    at

    org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:852)
    at

    org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:819)
    at

    org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:950)
    at

    org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:856)
    at

    org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:819)
    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:189)
    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:163)
    at com.testme.demo.HBaseTest.testInsert(HBaseTest.java:92)
    at com.testme.demo.HBaseTest.main(HBaseTest.java:158)

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupuser @
categorieshbase, hadoop
postedJul 3, '13 at 3:30a
activeJul 3, '13 at 6:08p
posts3
users3
websitehbase.apache.org

People

Translate

site design / logo © 2019 Grokbase