what is the hostname of your machine.... suppose if it is ubuntu then i hosts file specify like this
<ipdaddress of pc> ubuntu then try... On Thu, Jun 7, 2012 at 6:22 PM, Dhaval Shah <[email protected]>wrote: > > Have you restarted zookeeper? Also clearing zookeeper data dir and data > log dir might also help.. it seems that localhost.localdomain is being > cached somewhere > > > > ------------------------------ > On Thu 7 Jun, 2012 2:48 PM IST 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 > > -- ∞ Shashwat Shriparv
