Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper >> mail # dev >> reverse name lookup?


Copy link to this message
-
Re: reverse name lookup?
Are they able to elect a leader or not even that?

-Flavio

On May 22, 2012, at 6:31 AM, Marshall McMullen wrote:

> In our Linux environment, we're using IP addresses only for all our
> zookeeper servers. We've observed that without a functioning DNS server,
> zookeeper peers cannot communicate with one another. We have been able to
> work around this in the past by putting entries in /etc/hosts for all the
> zookeeper servers. With entries in /etc/hosts no reverse name lookup is
> performed and everything works fine.
>
> Has anyone else seen this behavior or can confirm/deny whether zookeeper
> requires (assumes) a functioning DNS server.. ?
>
> I've gone through a lot of the quorum code related to IP addresses, and I
> thought the culprit might be calls to InetAddress.getByName. But looking at
> the source code for that (at least in openjdk) they return if the given
> string is an actual IP address. Other thoughts I had were calls to
> InetSocketAddress(hostname, port), but that looks like it similarly goes
> through InetAddress so that should be OK.
>
> Anyhow, I'll keep digging into this, but any ideas or help would be
> appreciated!