Zookeeper错误 [英] Error on zookeeper

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

问题描述

我在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]错误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]错误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.

但是当我运行此命令时,就可以了: 须藤/usr/share/zookeeper/bin/zkServer.sh start

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是否正在运行(如果未运行)作为服务,并且端口应该打开以连接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 &

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

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