没有合适的资源?快使用搜索试试~ 我知道了~
win7安装部署zookeeper伪集群第2种方法
需积分: 10 1 下载量 144 浏览量
2018-04-05
18:41:36
上传
评论
收藏 4KB TXT 举报
温馨提示
试读
5页
win7安装部署zookeeper伪集群第2种方法,全网最全最详细的zookeeper集群的步骤,下载绝对不会后悔
资源推荐
资源详情
资源评论
在一台机器上通过伪集群运行时可以修改zkServer.cmd文件在里面加入
set ZOOCFG=..\conf\zoo1.cfg这行,另存为zkServer-1.cmd
-----------------------------------------------------------------------------------------------------------------------------------------
|setlocal |
|call "%~dp0zkEnv.cmd" |
| |
|set ZOOMAIN=org.apache.zookeeper.server.quorum.QuorumPeerMain |
|set ZOOCFG=..\conf\zoo1.cfg |
|echo on |
|call %JAVA% "-Dzookeeper.log.dir=%ZOO_LOG_DIR%" "-Dzookeeper.root.logger=%ZOO_LOG4J_PROP%" -cp "%CLASSPATH%" %ZOOMAIN% "%ZOOCFG%" %* |
| |
|endlocal |
-----------------------------------------------------------------------------------------------------------------------------------------
F:\aa_soft_install\zookeeper-3.4.10\conf增加zoo1.cfg
---------------------------------------------------------------------------------
|# The number of milliseconds of each //心跳间隔 毫秒每次 |
|tick
tickTime=2000
|
|# The number of ticks that the initial |
|# synchronization phase can take
|
|initLimit=10 |
|# The number of ticks that can pass between |
|# sending a request and getting an acknowledgement |
|syncLimit=5 |
|# the directory where the snapshot is stored. //镜像数据位置 |
|# do not use /tmp for storage, /tmp here is just
|
|# example sakes.
set ZOOCFG=..\conf\zoo1.cfg这行,另存为zkServer-1.cmd
-----------------------------------------------------------------------------------------------------------------------------------------
|setlocal |
|call "%~dp0zkEnv.cmd" |
| |
|set ZOOMAIN=org.apache.zookeeper.server.quorum.QuorumPeerMain |
|set ZOOCFG=..\conf\zoo1.cfg |
|echo on |
|call %JAVA% "-Dzookeeper.log.dir=%ZOO_LOG_DIR%" "-Dzookeeper.root.logger=%ZOO_LOG4J_PROP%" -cp "%CLASSPATH%" %ZOOMAIN% "%ZOOCFG%" %* |
| |
|endlocal |
-----------------------------------------------------------------------------------------------------------------------------------------
F:\aa_soft_install\zookeeper-3.4.10\conf增加zoo1.cfg
---------------------------------------------------------------------------------
|# The number of milliseconds of each //心跳间隔 毫秒每次 |
|tick
tickTime=2000
|
|# The number of ticks that the initial |
|# synchronization phase can take
|
|initLimit=10 |
|# The number of ticks that can pass between |
|# sending a request and getting an acknowledgement |
|syncLimit=5 |
|# the directory where the snapshot is stored. //镜像数据位置 |
|# do not use /tmp for storage, /tmp here is just
|
|# example sakes.
资源评论
warmsmellofcolitas
- 粉丝: 2
- 资源: 53
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功