This is a know issue with debian + java.
Spent a few hours stuck on this myself last week.
On 16 Aug 2010, at 13:28, Martin Waite wrote:
I have spent a few hours getting zookeeper election to work on debian
The zookeeper log contained the following error when trying to run an
2010-08-16 11:14:51,316 - WARN [WorkerSender
Cannot open channel to 2 at election address vm-024-squeeze-mw/
java.net.SocketException: Network is unreachable
at sun.nio.ch.Net.connect(Native Method)
Looking at netstat output, each server was running the listener on
interface only, and I don't think that my network can handle this.
The solution was to disable ipv6 on my servers. In /etc/default/
and then run "update-grub" and reboot.
This fixed the problem.
I am surprised that zookeeper (3.3.1) did not bind to all interfaces.
Will the new clientPortBindHostAddress config support a
can distinguish between tcpv4 and tcpv6 if both are available ?
Also, will an equivalent electionPortBindHostAddress be provided ?