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 Thread:quorumcnxmana...@361] -
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 the tcpv6
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/grub add
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 specification that
can distinguish between tcpv4 and tcpv6 if both are available ?
Also, will an equivalent electionPortBindHostAddress be provided ?