在启动zookeeper时报如下错误:
[root@hadoop02 bin]# ./zkServer.sh status
ZooKeeper JMX enabled by default
Using config: /usr/local/wyh/zookeeper-3.4.10/bin/../conf/zoo.cfg
Error contacting service. It is probably not running.
查看bin目录下的zookeeper.out中的信息:
经过仔细检查,发现是zoo.cfg中节点的配置信息符号写错了,改为冒号即可: