默认zookeeper给每个客户端IP使用的连接数为10个,经常会出现连接不够用的情况。修改连接数目前好像只支持zoo.cfg配置文件修改,所以需要zookeeper重启才能生效。
zoo.cfg:
maxClientCnxns=300
否则报错如下:2011-10-28 09:39:44,856 – WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:5858:NIOServerCnxn$Factory@253] – Too many connections from /172.*.*.* – max is 10
zoo.cfg参考参数设置如下:
dataDir = 数据存放路径
dataLogDir = 日志存放路径
clientPort = 客户端连接端口
clientPortAddress
tickTime= 整形 不能为0
maxClientCnxns= 整形 最大客户端连接数
minSessionTimeout= 整形
maxSessionTimeout= 整形
initLimit = 整形
syncLimit = 整形
electionAlg = 整形
peerType = observer | participant
server. sid= host:port | host:port:port | host:port:port:type (type值 observer | participant)
group.gid = sid:sid (一个ID, 值是多个sid, 中间以:分割, 一个sid只能属于一个gid)
weight.sid=整形
分享到:
相关推荐
赠送jar包:twill-zookeeper-0.6.0-incubating.jar; 赠送原API文档:twill-zookeeper-0.6.0-incubating-javadoc.jar; 赠送源代码:twill-zookeeper-0.6.0-incubating-sources.jar; 赠送Maven依赖信息文件:twill-...
赠送jar包:twill-zookeeper-0.6.0-incubating.jar; 赠送原API文档:twill-zookeeper-0.6.0-incubating-javadoc.jar; 赠送源代码:twill-zookeeper-0.6.0-incubating-sources.jar; 赠送Maven依赖信息文件:twill-...
apache-zookeeper分布式框架,压缩包内容:(apache-zookeeper-3.7.1-bin.tar.gz、apache-zookeeper-3.7.1.tar.gz、apache-zookeeper-3.6.4-bin.tar.gz、apache-zookeeper-3.6.4.tar.gz、apache-zookeeper-3.5.10-...
- `zookeeper-install`:指定Zookeeper安装目录。 - `zk-hosts`:设置Zookeeper集群的连接字符串,如`localhost:2181,localhost:2182,localhost:2183`。 - `http-port`:Exhibitor监听的HTTP端口,用于提供Web界面。...
赠送jar包:zookeeper-3.4.10.jar; 赠送原API文档:zookeeper-3.4.10-javadoc.jar; 赠送源代码:zookeeper-3.4.10-sources.jar; 赠送Maven依赖信息文件:zookeeper-3.4.10.pom; 包含翻译后的API文档:zookeeper-...
参考步骤:Zookeeper(一)------windows单机部署Zookeeper:https://blog.csdn.net/qq_29914837/article/details/102907864
linux与window上都可以运行 ...>nohup bin/zookeeper-server-start.sh config/zookeeper.properties >output 2>&1 & 启动kafka命令: >nohup bin/kafka-server-start.sh config/server.properties >output 2>&1 &
bin/zookeeper-server-start.sh config/zookeeper.properties & bin/kafka-server-start.sh config/server.properties & 停止 bin/kafka-server-start.sh config/server.properties & bin/zookeeper-server-...
赠送jar包:zookeeper-3.4.6.jar; 赠送原API文档:zookeeper-3.4.6-javadoc.jar; 赠送源代码:zookeeper-3.4.6-sources.jar; 赠送Maven依赖信息文件:zookeeper-3.4.6.pom; 包含翻译后的API文档:zookeeper-...
赠送jar包:zookeeper-3.4.9.jar; 赠送原API文档:zookeeper-3.4.9-javadoc.jar; 赠送源代码:zookeeper-3.4.9-sources.jar; 赠送Maven依赖信息文件:zookeeper-3.4.9.pom; 包含翻译后的API文档:zookeeper-...
赠送jar包:zookeeper-3.3.3.jar; 赠送原API文档:zookeeper-3.3.3-javadoc.jar; 赠送源代码:zookeeper-3.3.3-sources.jar; 包含翻译后的API文档:zookeeper-3.3.3-javadoc-API文档-中文(简体)版.zip 对应...
赠送jar包:zookeeper-3.4.14.jar; 赠送原API文档:zookeeper-3.4.14-javadoc.jar; 赠送源代码:zookeeper-3.4.14-sources.jar; 赠送Maven依赖信息文件:zookeeper-3.4.14.pom; 包含翻译后的API文档:zookeeper-...
apache-zookeeper-3.6.2-bin.tar apache-zookeeper-3.6.2-bin.tar apache-zookeeper-3.6.2-bin.tar apache-zookeeper-3.6.2-bin.tar apache-zookeeper-3.6.2-bin.tar apache-zookeeper-3.6.2-bin.tar apache-...
赠送jar包:zookeeper-3.4.6.jar; 赠送原API文档:zookeeper-3.4.6-javadoc.jar; 赠送源代码:zookeeper-3.4.6-sources.jar; 包含翻译后的API文档:zookeeper-3.4.6-javadoc-API文档-中文(简体)-英语-对照版....
赠送jar包:zookeeper-3.3.3.jar 赠送原API文档:zookeeper-3.3.3-javadoc.jar 赠送源代码:zookeeper-3.3.3-sources.jar 包含翻译后的API文档:zookeeper-3.3.3-javadoc-API文档-中文(简体)-英语-对照版.zip ...
赠送jar包:zookeeper-3.4.10.jar; 赠送原API文档:zookeeper-3.4.10-javadoc.jar; 赠送源代码:zookeeper-3.4.10-sources.jar; 赠送Maven依赖信息文件:zookeeper-3.4.10.pom; 包含翻译后的API文档:zookeeper-...
赠送jar包:zookeeper-3.4.9.jar; 赠送原API文档:zookeeper-3.4.9-javadoc.jar; 赠送源代码:zookeeper-3.4.9-sources.jar; 赠送Maven依赖信息文件:zookeeper-3.4.9.pom; 包含翻译后的API文档:zookeeper-...
- 解压`apache-zookeeper-3.7.0-bin.tar.gz`到你选择的目录,例如 `/opt`. - 配置`conf/zoo.cfg`,设置数据目录(dataDir)和日志目录(dataLogDir),并根据需求调整其他配置。 - 初始化数据目录,创建myid文件...
zookeeper安装,apache-zookeeper安装包,apache-zookeeper-3.5.5-bin