You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Manu S <ma...@gmail.com> on 2012/06/07 11:18:43 UTC

Pseudo Distributed: ERROR org.apache.hadoop.hbase.HServerAddress: Could not resolve the DNS name of localhost.localdomain

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

Re: Pseudo Distributed: ERROR org.apache.hadoop.hbase.HServerAddress: Could not resolve the DNS name of localhost.localdomain

Posted by Stack <st...@duboce.net>.
On Thu, Jun 7, 2012 at 2:18 AM, Manu S <ma...@gmail.com> wrote:
> *2012-06-07 12:13:12,103 ERROR org.apache.hadoop.hbase.HServerAddress:
> Could not resolve the DNS name of localhost.localdomain

This is pretty basic.  Fix this first and then your hbase will work.

Please stop spraying your queries across multiple lists.  Doing so
makes us think you arrogant which I am sure is not the case.  Pick the
list that seems most appropriate.  For example, in this case, it seems
like the hbase-user list would have been the right place to write; not
common-user and cdh-user.  If it turns out you've chosen wrong,
usually the chosen list will help you figure the proper target.

Thanks,
St.Ack

Re: Pseudo Distributed: ERROR org.apache.hadoop.hbase.HServerAddress: Could not resolve the DNS name of localhost.localdomain

Posted by shashwat shriparv <dw...@gmail.com>.
Hey manu which linux distribution you are using??

On Thu, Jun 7, 2012 at 8:18 PM, Manu S <ma...@gmail.com> wrote:

> Thank you Harsh & Shashwat
>
> I given the hostname in /etc/sysconfig/network as pseudo-distributed.
> hostname command returns this name also. I added this name in /etc/hosts
> file and changed all the configuration accordingly. But zookeeper is trying
> to resolve to localhost.localdomain. There was no entries in any conf files
> or hostname related files for localhost.localdomain.
>
> Yea, everything is pinging as I given the names in /etc/hosts.
>
> On Thu, Jun 7, 2012 at 7:13 PM, shashwat shriparv <
> dwivedishashwat@gmail.com
> > wrote:
>
> > Are you able ping to
> >
> > yourpcipaddress
> > domainnameyougaveformachine
> > hostnameofthemachine
> >
> >
> > Hbase stops means its not able to start itself on the ip or hostname
> which
> > you are giving.....
> >
> >
> > On Thu, Jun 7, 2012 at 2:48 PM, Manu S <ma...@gmail.com> 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
> > >
> >
> >
> >
> > --
> >
> >
> > ∞
> > Shashwat Shriparv
> >
>



-- 


∞
Shashwat Shriparv

Re: Pseudo Distributed: ERROR org.apache.hadoop.hbase.HServerAddress: Could not resolve the DNS name of localhost.localdomain

Posted by Manu S <ma...@gmail.com>.
Thank you Harsh & Shashwat

I given the hostname in /etc/sysconfig/network as pseudo-distributed.
hostname command returns this name also. I added this name in /etc/hosts
file and changed all the configuration accordingly. But zookeeper is trying
to resolve to localhost.localdomain. There was no entries in any conf files
or hostname related files for localhost.localdomain.

Yea, everything is pinging as I given the names in /etc/hosts.

On Thu, Jun 7, 2012 at 7:13 PM, shashwat shriparv <dwivedishashwat@gmail.com
> wrote:

> Are you able ping to
>
> yourpcipaddress
> domainnameyougaveformachine
> hostnameofthemachine
>
>
> Hbase stops means its not able to start itself on the ip or hostname which
> you are giving.....
>
>
> On Thu, Jun 7, 2012 at 2:48 PM, Manu S <ma...@gmail.com> 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
> >
>
>
>
> --
>
>
> ∞
> Shashwat Shriparv
>

Re: Pseudo Distributed: ERROR org.apache.hadoop.hbase.HServerAddress: Could not resolve the DNS name of localhost.localdomain

Posted by shashwat shriparv <dw...@gmail.com>.
Are you able ping to

yourpcipaddress
domainnameyougaveformachine
hostnameofthemachine


Hbase stops means its not able to start itself on the ip or hostname which
you are giving.....


On Thu, Jun 7, 2012 at 2:48 PM, Manu S <ma...@gmail.com> 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
>



-- 


∞
Shashwat Shriparv