Zookeeper管理服务器端口 [英] Zookeeper admin server Port

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

问题描述

在Windows上安装了zookeeper 3.5.6 bin.出现错误:无法启动AdminServer,异常退出org.apache.zookeeper.server.admin.AdminServer $ AdminServerException:在地址0.0.0.0,端口8080 和命令URL/commands

Installed zookeeper 3.5.6 bin on windows. Getting error: Unable to start AdminServer, exiting abnormally org.apache.zookeeper.server.admin.AdminServer$AdminServerException: Problem starting AdminServer on address 0.0.0.0, port 8080 and command URL /commands

在哪里可以找到AdminServer配置属性来解决此问题.在我的conf目录中,.cfg没有任何内容,我在其他任何地方也找不到任何内容??文档指的是zookeeper.admin.serverPort属性等

Where do I find the AdminServer configuration properties to fix this. In my conf directory the .cfg does not have anything, and I cant find anything anywhere else either?? The documentation is referring to zookeeper.admin.serverPort properties etc.

推荐答案

默认情况下,如果已经使用的端口8080会抛出此异常,则Admin Server绑定到端口8080.

By default, Admin Server binds to port 8080, in case port 8080 already in use this exception will be thrown.

将以下属性添加到 conf/zoo.cfg 文件中,然后重新启动zk服务器.
admin.serverPort = 9876 (8080以外的其他端口)

Add below property to conf/zoo.cfg file and restart zk server.
admin.serverPort=9876 (other port than 8080)

或者您可以通过
完全禁用管理服务器 admin.enableServer = false

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

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