Hi there, I ran in the same issue in a pseudo distributed setting and a custom HBase config location. It seems to be the same issue as in HBASE-3578 [1] and in another thread here on the mailing list [2]. I quickly fixed it by calling HBaseConfiguration.addHbaseResources(this.getConf()) to the LoadIncrementalHFiles.run() method. But this issue might arise also in other tools (for what I didn't check) and I'm unsure if the run method is the proper place for adjusting the configuration object.
Best, Lukas [1] https://issues.apache.org/jira/browse/HBASE-3578 [2] http://www.mail-archive.com/user@hbase.apache.org/msg05746.html On Wed, Apr 27, 2011 at 6:49 PM, Stack <st...@duboce.net> wrote: > Seems like pretty basic "I can't find a config.' issue. See > http://hbase.apache.org/xref/org/apache/hadoop/hbase/zookeeper/ZKConfig.html#219. > Seems like when its being run its not finding the hbase-default.xml > (as you surmise). > > I checked 0.90.1 and 0.90.2 jars and both seem to have > hbase-default.xml in the same place. > > I'm a little baffled myself. > St.Ack > > > 2011/4/27 Panayotis Antonopoulos <antonopoulos...@hotmail.com>: >> >> No I do not manage my own zookeeper. I use the default zookeeper that comes >> with HBase. I work on pseudo-distributed mode so far. So I don't have a >> zoo.cfg. >> However this works in HBase 0.90.1. >> Although I don't set the zookeeper port in any configuration file it is set >> in the hbase-default.xml in hbase-0.90.2.jar so I thought that it should >> find the property like in the 0.90.1 version. >> >> Regards, >> P.A. >> >>> Date: Wed, 27 Apr 2011 09:31:31 -0700 >>> Subject: Re: Problem with zookeeper port while using completebulkupload >>> From: st...@duboce.net >>> To: user@hbase.apache.org >>> >>> I took a quick look through 0.90.2 list of issues and only the below >>> explicitly references: >>> >>> HBASE-3591 completebulkload doesn't honor generic -D options >>> >>> Seems unrelated though. >>> >>> Do you manage your own zk ensemble? Do you have a zoo.cfg going on or >>> are you using hbase configs? >>> >>> St.Ack >>> >>> >>> 2011/4/27 Panayotis Antonopoulos <antonopoulos...@hotmail.com>: >>> > >>> > I downloaded HBase 0.90.1 again and it works perfectly. >>> > Is there anything wrong with HBase 0.90.2 and completebulkload? >>> > >>> >> From: antonopoulos...@hotmail.com >>> >> To: user@hbase.apache.org >>> >> Subject: Problem with zookeeper port while using completebulkupload >>> >> Date: Wed, 27 Apr 2011 18:51:38 +0300 >>> >> >>> >> >>> >> Hello, >>> >> I am trying to use completebulkload in HBase 0.90.2 and I get the >>> >> following exception: >>> >> >>> >> 11/04/27 18:45:51 ERROR zookeeper.ZKConfig: no clientPort found in >>> >> zoo.cfg >>> >> Exception in thread "main" >>> >> org.apache.hadoop.hbase.ZooKeeperConnectionException: >>> >> java.io.IOException: Unable to determine ZooKeeper ensemble >>> >> at >>> >> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getZooKeeperWatcher(HConnectionManager.java:1000) >>> >> at >>> >> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.setupZookeeperTrackers(HConnectionManager.java:303) >>> >> at >>> >> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.<init>(HConnectionManager.java:294) >>> >> at >>> >> org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:156) >>> >> at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:167) >>> >> at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:145) >>> >> at >>> >> org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.run(LoadIncrementalHFiles.java:311)... >>> >> >>> >> I used completebulkload in HBase 0.90.1 and it worked fine. Then I >>> >> installed Cloudera HBase and after uninstalling it I tried HBase 0.90.2 >>> >> and the problem appeared. >>> >> >>> >> Does anyone know what is going on? >>> >> >>> >> Thank you in advance, >>> >> Panagiotis Antonopoulos. >>> >> >>> > >> >