动物园管理员出错 [英] Error on zookeeper

查看:42
本文介绍了动物园管理员出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Ubuntu 14 上安装了 zookeeper,但是当运行命令时它失败了.命令是:cat/var/log/kaa/* |grep 错误

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

它显示:2017-04-19 00:20:04,197 [main] ERROR o.k.k.s.n.s.i.KaNodeInitializationService - 无法在 5 分钟内连接到 Zookeeper.Kaa 节点服务器将停止.2017-04-19 00:45:39,668 [Kaa 节点服务器关闭线程] 错误 o.k.k.s.c.s.a.AdminInitializationService - 停止 Kaa Admin Web 服务器时出错!2017-04-19 00:45:39,668 [Kaa 节点服务器关闭线程] 错误 o.k.k.s.c.u.KaaUncaughtExceptionHandler - 线程 [名称:Kaa 节点服务器关闭线程,ID:67] 未捕获异常:2017-04-19 17:48:15,442 [main] ERROR o.k.k.s.n.s.i.KaaNodeInitializationService - 无法在 5 分钟内连接到 Zookeeper.Kaa 节点服务器将停止.

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.

但是当我运行这个命令时就可以了:sudo/usr/share/zookeeper/bin/zkServer.sh 启动

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

我该怎么办?这是部署Kaa集群的项目

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

推荐答案

如果没有将zookeeper作为服务运行,请检查zookeeper是否正在运行,并且端口应该打开以连接zk.

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 &

这篇关于动物园管理员出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆