Error on zookeeper

别来无恙 提交于 2020-01-17 08:04:47

问题


I installed zookeeper on Ubuntu 14 but when run the command it fails. the command is: cat /var/log/kaa/* | grep ERROR

it shows: 2017-04-19 00:20:04,197 [main] ERROR o.k.k.s.n.s.i.KaNodeInitializationService - Failed to connect to Zookeeper within 5 minutes. Kaa Node Server will be stopped. 2017-04-19 00:45:39,668 [Kaa Node Server Shutdown Thread] ERROR o.k.k.s.c.s.a.AdminInitializationService - Error stopping Kaa Admin web server! 2017-04-19 00:45:39,668 [Kaa Node Server Shutdown Thread] ERROR o.k.k.s.c.u.KaaUncaughtExceptionHandler - Thread [Name: Kaa Node Server Shutdown Thread, id:67] uncaught exception: 2017-04-19 17:48:15,442 [main] ERROR o.k.k.s.n.s.i.KaaNodeInitializationService - Failed to connect to Zookeeper within 5 minutes. Kaa Node Server will be stopped.

But when i run this command it is ok: sudo /usr/share/zookeeper/bin/zkServer.sh start

What should i do? This is the project to deploy Kaa cluster


回答1:


check the zookeeper is running or not if not run it as a service and port should open to connect zk.

https://kafka.apache.org/documentation/#quickstart

> bin/kafka-server-start.sh config/server-1.properties &

> bin/kafka-server-start.sh config/server-2.properties &


来源:https://stackoverflow.com/questions/43496630/error-on-zookeeper

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!