问题描述
我正在尝试在远程虚拟机上启动Zookeeper.我经常在项目中使用它,并且在启动Zookeeper时没有任何问题.但是最近,当我尝试启动服务器时,出现了错误.当我启动./zkServer.sh时,它显示zookeeper服务器已启动.当我使用./zkServer.sh status检查状态时,它显示联系服务时出错.它可能未运行."我完全在使用5个虚拟机.最初,所有这些机器都还不错.我开始遇到机器1的问题.但是最近,我所有的虚拟机都遇到了同样的问题.有人可以告诉我这个问题是什么,并建议我解决这个问题的方法吗?
I am trying to start zookeeper on a remote virtual machine. I use this for my project regularly and I do not have any problems while starting the zookeeper. But lately when I am trying to start the server I am getting an error.When I give ./zkServer.sh start it shows zookeeper server started.When I check for status using ./zkServer.sh status it shows "Error contacting service. It is probably not running."I am totally working with 5 Virtual Machines. All these machines were fine initially. I started getting problems with machine 1. But recently I have the same problem with all my virtual machines. Can someone tell me what the issue is and suggest me a way to clear this issue?
推荐答案
最有可能的Zookeeper服务器已退出.如果我们在Linux机器上运行它,请使用linux命令.其中一些:
Most probably Zookeeper server exited.If we are running it on a Linux box, use the linux commands. Some of them:
ps -ef | grep -i zookeeper
jps
等
另外,尝试在前台运行它
Also, try running it in foreground
zkServer.sh start-foreground
这篇关于Zookeeper:它可能没有运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!