标签:
做了5个节点,但是查看状态的时候,发现
./zkServer.sh status
JMX enabled by default
Using config: /opt/zookeeper/bin/../conf/zoo.cfg
Error contacting service. It is probably not running.
发现绑定地址有问题,绑定了一个ipv6的地址:
tcp 0 0 ::ffff:10.0.0.11:3888 :::* LISTEN 41802/java
修改java启动参数:
ZOOMAIN="-Djava.net.preferIPv4Stack=true -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=$JMXLOCALONLY org.apache.zookeeper.server.quorum.QuorumPeerMain"
再次启动,正常。
标签:
原文地址:http://www.cnblogs.com/laozhizi/p/4788634.html