FAQ
Hi All,

In pseudo distributed node HBaseMaster is stopping automatically when we
starts HbaseRegion.

I have changed all the configuration files of Hadoop,Hbase & Zookeeper to
set the exact hostname of the machine. Also commented the localhost entry
from /etc/hosts & cleared the cache as well. There is no entry of
localhost.localdomain entry in these configurations, but this it is
resolving to localhost.localdomain.

Please find the error:
2012-06-07 12:13:11,995 INFO
org.apache.hadoop.hbase.master.MasterFileSystem: No logs to split
*2012-06-07 12:13:12,103 ERROR org.apache.hadoop.hbase.HServerAddress:
Could not resolve the DNS name of localhost.localdomain
2012-06-07 12:13:12,104 FATAL org.apache.hadoop.hbase.master.HMaster:
Unhandled exception. Starting shutdown.*
*java.lang.IllegalArgumentException: hostname can't be null*
at java.net.InetSocketAddress.(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.catalog.CatalogTracker.waitForRoot(CatalogTracker.java:222)
at
org.apache.hadoop.hbase.catalog.CatalogTracker.waitForRootServerConnection(CatalogTracker.java:240)
at
org.apache.hadoop.hbase.catalog.CatalogTracker.verifyRootRegionLocation(CatalogTracker.java:487)
at
org.apache.hadoop.hbase.master.HMaster.assignRootAndMeta(HMaster.java:455)
at
org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:406)
at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:293)
2012-06-07 12:13:12,106 INFO org.apache.hadoop.hbase.master.HMaster:
Aborting
2012-06-07 12:13:12,106 DEBUG org.apache.hadoop.hbase.master.HMaster:
Stopping service threads

Thanks,
Manu S

Search Discussions

  • Harsh J at Jun 7, 2012 at 9:43 am
    Hey Manu,
    Also commented the localhost entry from /etc/hosts & cleared the cache as well.
    Do not do this. Uncomment it again and please share your current
    /etc/hosts and the error you get at HMaster after uncommenting it
    (like you would have got before).

    127.0.0.1 localhost.localdomain localhost

    (The above line is the right line)
    On Thu, Jun 7, 2012 at 2:48 PM, Manu S wrote:
    Hi All,

    In pseudo distributed node HBaseMaster is stopping automatically when we
    starts HbaseRegion.

    I have changed all the configuration files of Hadoop,Hbase & Zookeeper to
    set the exact hostname of the machine. Also commented the localhost entry
    from /etc/hosts & cleared the cache as well. There is no entry of
    localhost.localdomain entry in these configurations, but this it is
    resolving to localhost.localdomain.

    Please find the error:
    2012-06-07 12:13:11,995 INFO
    org.apache.hadoop.hbase.master.MasterFileSystem: No logs to split
    2012-06-07 12:13:12,103 ERROR org.apache.hadoop.hbase.HServerAddress: Could
    not resolve the DNS name of localhost.localdomain
    2012-06-07 12:13:12,104 FATAL org.apache.hadoop.hbase.master.HMaster:
    Unhandled exception. Starting shutdown.
    java.lang.IllegalArgumentException: hostname can't be null
    at java.net.InetSocketAddress.<init>(InetSocketAddress.java:121)
    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.catalog.CatalogTracker.waitForRoot(CatalogTracker.java:222)
    at
    org.apache.hadoop.hbase.catalog.CatalogTracker.waitForRootServerConnection(CatalogTracker.java:240)
    at
    org.apache.hadoop.hbase.catalog.CatalogTracker.verifyRootRegionLocation(CatalogTracker.java:487)
    at
    org.apache.hadoop.hbase.master.HMaster.assignRootAndMeta(HMaster.java:455)
    at
    org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:406)
    at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:293)
    2012-06-07 12:13:12,106 INFO org.apache.hadoop.hbase.master.HMaster:
    Aborting
    2012-06-07 12:13:12,106 DEBUG org.apache.hadoop.hbase.master.HMaster:
    Stopping service threads

    Thanks,
    Manu S


    --
    Harsh J
  • Manu S at Jun 7, 2012 at 11:47 am
    Thanks a lot Harsh.. Its fixed.. :)
    Previously it was
    127.0.0.1 localhost

    Now it is
    127.0.0.1 localhost.localdomain localhost

    Why this is always trying to resolve localhost.localdomain even if we
    changed the configuration to the hostname?

    On Thu, Jun 7, 2012 at 3:12 PM, Harsh J wrote:

    Hey Manu,
    Also commented the localhost entry from /etc/hosts & cleared the cache
    as well.

    Do not do this. Uncomment it again and please share your current
    /etc/hosts and the error you get at HMaster after uncommenting it
    (like you would have got before).

    127.0.0.1 localhost.localdomain localhost

    (The above line is the right line)
    On Thu, Jun 7, 2012 at 2:48 PM, Manu S wrote:
    Hi All,

    In pseudo distributed node HBaseMaster is stopping automatically when we
    starts HbaseRegion.

    I have changed all the configuration files of Hadoop,Hbase & Zookeeper to
    set the exact hostname of the machine. Also commented the localhost entry
    from /etc/hosts & cleared the cache as well. There is no entry of
    localhost.localdomain entry in these configurations, but this it is
    resolving to localhost.localdomain.

    Please find the error:
    2012-06-07 12:13:11,995 INFO
    org.apache.hadoop.hbase.master.MasterFileSystem: No logs to split
    2012-06-07 12:13:12,103 ERROR org.apache.hadoop.hbase.HServerAddress: Could
    not resolve the DNS name of localhost.localdomain
    2012-06-07 12:13:12,104 FATAL org.apache.hadoop.hbase.master.HMaster:
    Unhandled exception. Starting shutdown.
    java.lang.IllegalArgumentException: hostname can't be null
    at java.net.InetSocketAddress.<init>(InetSocketAddress.java:121)
    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.catalog.CatalogTracker.waitForRoot(CatalogTracker.java:222)
    at
    org.apache.hadoop.hbase.catalog.CatalogTracker.waitForRootServerConnection(CatalogTracker.java:240)
    at
    org.apache.hadoop.hbase.catalog.CatalogTracker.verifyRootRegionLocation(CatalogTracker.java:487)
    at
    org.apache.hadoop.hbase.master.HMaster.assignRootAndMeta(HMaster.java:455)
    at
    org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:406)
    at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:293)
    2012-06-07 12:13:12,106 INFO org.apache.hadoop.hbase.master.HMaster:
    Aborting
    2012-06-07 12:13:12,106 DEBUG org.apache.hadoop.hbase.master.HMaster:
    Stopping service threads

    Thanks,
    Manu S


    --
    Harsh J
  • Harsh J at Jun 7, 2012 at 1:35 pm
    Manu,

    There are two parts to a "hostname" here. One is the value in
    /etc/hosts, which merely helps _resolve_ a hostname (Like a file-based
    DNS), the other and true hostname value comes from
    /etc/sysconfig/network file (or other files, depending on your OS) and
    reflects the value you get when you run the "hostname" command.

    Roughly speaking, HBase gets what the "hostname" command returns
    (considered to be the default hostname of your system) and tries to
    register itself with that over ZK to indicate its master address. But
    then the name its placed there is not resolvable, and hence causes an
    error when anything tries to resolve and use it (for eventually
    binding to right interface/etc.)
    On Thu, Jun 7, 2012 at 5:16 PM, Manu S wrote:
    Thanks a lot Harsh.. Its fixed.. :)
    Previously it was
    127.0.0.1         localhost

    Now it is
    127.0.0.1 localhost.localdomain localhost

    Why this is always trying to resolve localhost.localdomain even if we
    changed the configuration to the hostname?


    On Thu, Jun 7, 2012 at 3:12 PM, Harsh J wrote:

    Hey Manu,
    Also commented the localhost entry from /etc/hosts & cleared the cache
    as well.
    Do not do this. Uncomment it again and please share your current
    /etc/hosts and the error you get at HMaster after uncommenting it
    (like you would have got before).

    127.0.0.1 localhost.localdomain localhost

    (The above line is the right line)
    On Thu, Jun 7, 2012 at 2:48 PM, Manu S wrote:
    Hi All,

    In pseudo distributed node HBaseMaster is stopping automatically when we
    starts HbaseRegion.

    I have changed all the configuration files of Hadoop,Hbase & Zookeeper
    to
    set the exact hostname of the machine. Also commented the localhost
    entry
    from /etc/hosts & cleared the cache as well. There is no entry of
    localhost.localdomain entry in these configurations, but this it is
    resolving to localhost.localdomain.

    Please find the error:
    2012-06-07 12:13:11,995 INFO
    org.apache.hadoop.hbase.master.MasterFileSystem: No logs to split
    2012-06-07 12:13:12,103 ERROR org.apache.hadoop.hbase.HServerAddress:
    Could
    not resolve the DNS name of localhost.localdomain
    2012-06-07 12:13:12,104 FATAL org.apache.hadoop.hbase.master.HMaster:
    Unhandled exception. Starting shutdown.
    java.lang.IllegalArgumentException: hostname can't be null
    at java.net.InetSocketAddress.<init>(InetSocketAddress.java:121)
    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.catalog.CatalogTracker.waitForRoot(CatalogTracker.java:222)
    at

    org.apache.hadoop.hbase.catalog.CatalogTracker.waitForRootServerConnection(CatalogTracker.java:240)
    at

    org.apache.hadoop.hbase.catalog.CatalogTracker.verifyRootRegionLocation(CatalogTracker.java:487)
    at

    org.apache.hadoop.hbase.master.HMaster.assignRootAndMeta(HMaster.java:455)
    at

    org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:406)
    at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:293)
    2012-06-07 12:13:12,106 INFO org.apache.hadoop.hbase.master.HMaster:
    Aborting
    2012-06-07 12:13:12,106 DEBUG org.apache.hadoop.hbase.master.HMaster:
    Stopping service threads

    Thanks,
    Manu S


    --
    Harsh J


    --
    Harsh J

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcdh-user @
categorieshadoop
postedJun 7, '12 at 9:18a
activeJun 7, '12 at 1:35p
posts4
users2
websitecloudera.com
irc#hadoop

2 users in discussion

Manu S: 2 posts Harsh J: 2 posts

People

Translate

site design / logo © 2022 Grokbase