hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Daniel Cryans <jdcry...@apache.org>
Subject Re: Zookeeper hostname lookup
Date Tue, 08 Dec 2009 02:11:25 GMT
I created a new jira about checking every bits of info we can to do
the comparison, please try my patch from


On Mon, Dec 7, 2009 at 5:02 PM, Jean-Daniel Cryans <jdcryans@apache.org> wrote:
> Richard,
> Actually what you're hitting isn't from the Zookeeper code but our
> HBase wrapper that starts the ZK quorum peers. What we're doing is
> that the peer needs an id when starting up and the way we make sure
> it's different on every started node is that we just use the index of
> the address in the hbase.zookeeper.quorum configuration. Maybe we
> could check not just the default hostname...
> J-D
> On Mon, Dec 7, 2009 at 1:14 AM, Richard Dorman <richard@bengueladev.com> wrote:
>> I'm trying to startup a quorum of Zookeeper servers in a cluster,
>> however, Zookeeper is failing to start because it cannot find its
>> hostname in the list of Zookeeper quorum servers.
>> I know this problem is well documented on the WIKI, however, my
>> situation is a little different. The allocation of a node to become a
>> Zookeeper is done dynamically by a management service running else where
>> on the cluster. This node then associates its IP with a hostname in the
>> Zookeeper quorum list. The hostname is not the default hostname of the
>> node. The node may associate its IP with multiple hostnames for each
>> service that it is allocated.
>> This causes a problem when Zookeeper starts. Zookeeper does a
>> getdefaulthost which will return the nodes default hostname and not the
>> associated hostname.
>> So my questions are:
>> 1. Is it possible to resolve this some other way? We are not running DNS
>> (hostname associations are managed by our own services). We also cannot
>> use the nodes ip address as the nodes are allocated dynamically.
>> Dynamically updating the config files is also not practical.
>> 2. Why does Zookeeper need to test whether its hostname is in the
>> Zookeeper quorim list? Can this safely be disabled?
>> Richard

View raw message