Windows系统安装Zookeeper3.6.3过程及ZooKeeperServer not running解决办法

目录

1、下载安装包

2、Zookeeper配置

3、安装JDK

4、启动Zookeeper服务

5、打开Zookeeper客户端

6、java.io.IOException: ZooKeeperServer not running

1、下载安装包

3.6.3是最新的稳定版

地址:https://www.apache.org/dyn/closer.lua/zookeeper/zookeeper-3.6.3/apache-zookeeper-3.6.3-bin.tar.gz

https://zookeeper.apache.org/releases.html

Windows系统安装Zookeeper3.6.3过程及ZooKeeperServer not running解决办法_第1张图片

2、Zookeeper配置

解压缩文件后,在apache-zookeeper-3.6.3-bin文件夹下,创建data文件夹

在apache-zookeeper-3.6.3-bin\conf文件夹下,把zoo_sample.cfg修改为zoo.cfg

打开zoo.cfg文件,修改dataDir为data文件夹的路径。

Windows系统安装Zookeeper3.6.3过程及ZooKeeperServer not running解决办法_第2张图片

3、安装JDK

配置JAVA_HOME,path

4、启动Zookeeper服务

双击打开zkServer.cmd

Windows系统安装Zookeeper3.6.3过程及ZooKeeperServer not running解决办法_第3张图片

Windows系统安装Zookeeper3.6.3过程及ZooKeeperServer not running解决办法_第4张图片

5、打开Zookeeper客户端

双击打开zkCli.cmd

Windows系统安装Zookeeper3.6.3过程及ZooKeeperServer not running解决办法_第5张图片

6、java.io.IOException: ZooKeeperServer not running

Windows系统安装Zookeeper3.6.3过程及ZooKeeperServer not running解决办法_第6张图片

解决办法:删除data下的version-2文件夹

Windows系统安装Zookeeper3.6.3过程及ZooKeeperServer not running解决办法_第7张图片

 

 

你可能感兴趣的:(Windows系统安装Zookeeper3.6.3过程及ZooKeeperServer not running解决办法)