Jean-Daniel Cryans wrote:
Added here


On Mon, Aug 24, 2009 at 5:20 PM, Patrick Hunt<> wrote:
No worries. The details are actually interesting/useful, you might consider
adding to your docs in case another user runs into this.


Jean-Daniel Cryans wrote:

Basically, yes. Sorry for the lengthy answer ;)


On Mon, Aug 24, 2009 at 5:09 PM, Patrick Hunt<> wrote:
I see, so an inconsistency then wrt name lookup.



Jean-Daniel Cryans wrote:
Well the situation is that HBase now generates the myid files and to
find the id we look in the hbase.zookeeper.quorum configuration that
itself generates a temporary zoo.cfg file. To do that we have to
somehow match the machine's own knowledge of its address with what's
in that list. To find our address we use
with the method getDefaultHost and then we go through the list of
machines defined in the HBase configuration. What comes out of DNS
relies on how the OS is configured or it asks a specified dns server
(if provided).

So, in David's situation, he specified an IP address and DNS returns a
hostname so we don't get a match. The resolution in that case is to
fix the configuration by passing hostnames, to change the OS
configuration, to setup a DNS server or to configure/start zookeeper
by hand. From what I've seen, that stuff is never easier but eh, we
still get you a quorum running in the end :P


On Mon, Aug 24, 2009 at 4:37 PM, Patrick Hunt<> wrote:
Hi Jean-Daniel, not sure I get your response fully. Are you saying that
configured ip addr was resolved to a hostname, but that hostname didn't
match the list of ip addresses used when defining the zk quorum
there a workaround you could suggest for ppl who don't have DNS
Should an Hbase JIRA be created for this -- ie is it something you
should be fixed/improved?


Jean-Daniel Cryans wrote:
Oh ok well HBase relies on the DNS class shipped with Hadoop to
determine your address. It will try to use a hostname if possible but
what comes out of there really depends on your OS configuration. In
your case, that means that it resolved a hostname instead of an IP
(which is rare) so you should use it instead.

Also this is HBase-specific, ZK isn't really involved.


On Mon, Aug 24, 2009 at 3:47 PM, Pythonner<> wrote:
I forgot to post that line:

ok, I'll check the guide shipped with HBase.

On Mon, Aug 24, 2009 at 3:43 PM, Jean-Daniel Cryans


hbase.master is deprecated in HBase 0.20, instead you have to
hbase.zookeeper.quorum if you want to use HBase in a distributed
with a ZK quorum. Please see the Getting Started documentation
with HBase.


On Mon, Aug 24, 2009 at 3:39 PM, Pythonner<>
this is a follow-up of discussion started on twitter with

I installed HBase 0.20.0 RC2 on Ubuntu server boxes.

If I'm using machines IP in config files (see below), I get the
error message:

'Could not find my address: xyz in list of ZooKeeper quorum
(where 'yxz' is a hostname)

my config is:

export HBASE_MANAGES_ZK=true







from vanilla Ubuntu server install, I removed the line

Is it supposed to work well with IP addresses only?


Balie - Baseline Information Extraction
[Open Source ~ 100% Java ~ Using Weka ~ Multilingual]

Reply via email to