Today on centos6 built zoopeeper cluster in their respective configuration files are configured datadir information and zookeeper information of each node, each node configuration information as follows:
But found zookeeper at startup can not start, note zookeeper / bin directory created under the zookeeper.out file when the file is started zookeeper error logging file, open the file, you can see being given as follows:
Error is "Can not find the route," use the ping command to test whether the machine can communicate, can ping a result, the configuration is also true, because for a long time, later found to be a firewall problem, just need to turn off the firewall.
In centos6 environment,
view the current status of the firewall command: service iptables status
turn off the firewall command: service iptables stop
to set the boot does not start the firewall: chkconfig iptables off
final, encounter problems linux is supposed to look at the log, can be resolved faster problem.