zookeeper安装

zookeeper安装,第1张

zookeeper安装

D:yglapache-zookeeper-3.5.6-binbin>zkServer.cmd
Error: JAVA_HOME is incorrectly set.

D:yglapache-zookeeper-3.5.6-binbin>call “-Dzookeeper.log.dir=D:yglapache-zookeeper-3.5.6-binbin…logs” “-Dzookeeper.root.logger=INFO,CONSOLE” “-Dzookeeper.log.file=zookeeper-cll-server-UU-20200103GXMG.log” “-XX:+HeapDumpOnOutOfMemoryError” “-XX:onOutOfMemoryError=cmd /c taskkill /pid %%p /t /f” -cp “D:yglapache-zookeeper-3.5.6-binbin…buildclasses;D:yglapache-zookeeper-3.5.6-binbin…buildlib*;D:yglapache-zookeeper-3.5.6-binbin…*;D:yglapache-zookeeper-3.5.6-binbin…lib*;D:yglapache-zookeeper-3.5.6-binbin…conf” org.apache.zookeeper.server.quorum.QuorumPeerMain “D:yglapache-zookeeper-3.5.6-binbin…confzzoo.cfg”
文件名、目录名或卷标语法不正确。

编辑zkEnv.cmd

@REM setup java environment variables

if not defined JAVA_HOME (
echo Error: JAVA_HOME is not set.
goto :eof
)

set JAVA_HOME=C:Program Files (x86)Javajdk1.8.0_191

if not exist “%JAVA_HOME%”binjava.exe (
echo Error: JAVA_HOME is incorrectly set.
goto :eof
)

D:yglapache-zookeeper-3.5.6-binbin>zkServer.cmd

D:yglapache-zookeeper-3.5.6-binbin>call “C:Program Files (x86)Javajdk1.8.0_191”binjava “-Dzookeeper.log.dir=D:yglapache-zookeeper-3.5.6-binbin…logs” “-Dzookeeper.root.logger=INFO,CONSOLE” “-Dzookeeper.log.file=zookeeper-cll-server-UU-20200103GXMG.log” “-XX:+HeapDumpOnOutOfMemoryError” “-XX:onOutOfMemoryError=cmd /c taskkill /pid %%p /t /f” -cp “D:yglapache-zookeeper-3.5.6-binbin…buildclasses;D:yglapache-zookeeper-3.5.6-binbin…buildlib*;D:yglapache-zookeeper-3.5.6-binbin…*;D:yglapache-zookeeper-3.5.6-binbin…lib*;D:yglapache-zookeeper-3.5.6-binbin…conf” org.apache.zookeeper.server.quorum.QuorumPeerMain “D:yglapache-zookeeper-3.5.6-binbin…confzoo.cfg”
2021-11-13 22:24:11,792 [myid:] - INFO [main:QuorumPeerConfig@133] - Reading configuration from: D:yglapache-zookeeper-3.5.6-binbin…confzoo.cfg
2021-11-13 22:24:11,893 [myid:] - ERROR [main:QuorumPeerMain@89] - Invalid config, exiting abnormally
org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing D:yglapache-zookeeper-3.5.6-binbin…confzoo.cfg
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:154)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:113)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:82)
Caused by: java.lang.IllegalArgumentException: D:yglapache-zookeeper-3.5.6-binbin…confzoo.cfg file is missing
at org.apache.zookeeper.server.util.VerifyingFileFactory.doFailForNonExistingPath(VerifyingFileFactory.java:51)
at org.apache.zookeeper.server.util.VerifyingFileFactory.validate(VerifyingFileFactory.java:45)
at org.apache.zookeeper.server.util.VerifyingFileFactory.create(VerifyingFileFactory.java:40)
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:139)
… 2 more
Invalid config, exiting abnormally

D:yglapache-zookeeper-3.5.6-binbin>endlocal

D:yglapache-zookeeper-3.5.6-binbin>


在conf目录下复制zoo_sample.cfg,粘贴并重命名为zoo.cfg


dataDir=…/data
data为上图中的data文件夹

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5572637.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-14
下一篇 2022-12-14

发表评论

登录后才能评论

评论列表(0条)

保存