【ZooKeeper异常】Error contacting service. It is probably not running.
2011-12-30 10:35
513 查看
在安装ZooKeeper中遇到很奇怪的错误,在这里和大家分享下每次运行 bin/zkServer.sh status 的时候总是报
JMX enabled by default
Using config: /data/zookeeper-3.3.2/bin/../conf/zoo.cfg
Error contacting service. It is probably not running.
上网查了下资料,原因是nc命令的版本问题,本机上的nc命令没有-q参数。打开zkServer.sh,找到
STAT=`echo stat | nc -q l localhost $(grep clientPort "$ZOOCFG" | sed -e 's/.*=//') 2> /dev/null| grep Mode`
这行,去掉-q 1 即可。
运行 bin/zkServer.sh status ,显示
或
JMX enabled by default
Using config: /data/zookeeper-3.3.2/bin/../conf/zoo.cfg
Error contacting service. It is probably not running.
上网查了下资料,原因是nc命令的版本问题,本机上的nc命令没有-q参数。打开zkServer.sh,找到
STAT=`echo stat | nc -q l localhost $(grep clientPort "$ZOOCFG" | sed -e 's/.*=//') 2> /dev/null| grep Mode`
这行,去掉-q 1 即可。
运行 bin/zkServer.sh status ,显示
或
相关文章推荐
- Zookeeper错误1_zookeeper Error contacting service. It is probably not running异常1
- zookeeper 集群异常:Error contacting service. It is probably not running.
- Zookeeper启动异常:Error contacting service. It is probably not running.
- 配置zookeeper异常 Error contacting service. It is probably not running.以及java.net.ConnectException: 拒绝连接
- 安装zookeeper时候,解决状态显示报错:Error contacting service. It is probably not running问题
- 启动zookeeper时,jps显示有进程,但是status查看状态时就Error contacting service. It is probably not running
- Zookeep启动异常:Error contacting service. It is probably not running.
- zookeeper Error contacting service. It is probably not running错误
- 异常解决:Error contacting service. It is probably not running.
- 启动zookeeper报错:Error contacting service. It is probably not running
- zookeeper环境搭建中的几个坑[Error contacting service. It is probably not running]的分析及解决
- zookeeper环境搭建中的几个坑[Error contacting service. It is probably not running]的分析及解决
- zookeeper环境搭建中的几个坑[Error contacting service. It is probably not running]的分析及解决
- zokeeper启动异常:Error contacting service. It is probably not running
- Zookeeper:“Error contacting service. It is probably not running.”
- 安装zookeeper时候,可以查看进程启动,但是状态显示报错:Error contacting service. It is probably not running
- zookeeper配置中出现Error contacting service. It is probably not running
- 安装zookeeper时候,可以查看进程启动,但是状态显示报错:Error contacting service. It is probably not running
- Zookeepr启动异常:Error contacting service. It is probably not running.
- ZooKeeper 集群搭建 Error contacting service. It is probably not running.