On Mon, Mar 21, 2011 at 5:00 PM, Jameson Li <hovlj...@gmail.com> wrote:
> zookeeper(HBASE_MANAGES_ZK=true).

This and the line below point out that your 'configuration' of HBase
is somehow only half-ready for a fully-distributed operation :)

> connection to server localhost/127.0.0.1:2181

The issue is that, by default for easy setups of
local/pseudo-distributed modes, etc., HBase launches its managed
ZooKeeper instance to listen on 'localhost'. Your services and tasks
running elsewhere would never be able to connect to an 'lo' listening
service, of course.

You should change this behavior by setting the hbase.zookeeper.quorum
property to the proper, actual set of hosts you want ZooKeeper to run
on (In your case you could give it the HBase master's hostname,
perhaps? Or three of them.). The docs already speak of this: (see
hbase.zookeeper.quorum)
http://hbase.apache.org/docs/r0.20.6/hbase-conf.html :)

Note: It is always better to setup ZooKeeper by self, and externally
managed. Doesn't take more than 5m to configure and setup a
defaults-mostly cluster and not have HBase monitor it. :)

-- 
Harsh J
http://harshj.com

Reply via email to