Windows 10 Zookeeper 3.5.6启动问题

Windows 10 Zookeeper 3.5.6启动问题,windows-10,apache-zookeeper,startup,Windows 10,Apache Zookeeper,Startup,在Win10和java8上使用Zookeeper 3.5.6-bin PATH= ;%ZOOKEEPER_HOME%\bin; ZOOKEEPER_HOME=C:\apps\Apache\apache-zookeeper-3.5.6-bin dataDir=C:\appas\apache\apache-zookeeper-3.5.6-bin\data 我从zkServer start 错误: [main:ZooKeeperServerMain@66] - Invalid argumen

在Win10和java8上使用Zookeeper 3.5.6-bin

PATH= ;%ZOOKEEPER_HOME%\bin;  
ZOOKEEPER_HOME=C:\apps\Apache\apache-zookeeper-3.5.6-bin  
dataDir=C:\appas\apache\apache-zookeeper-3.5.6-bin\data
我从
zkServer start

错误:

[main:ZooKeeperServerMain@66] - Invalid arguments, exiting abnormally  
java.lang.NumberFormatException: For input string: "C:\apps\apache\apache-zookeeper-3.5.6-bin\bin\..\conf\zoo.cfg" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:82)

2020-01-28 15:29:12,618 [myid:] - INFO  [main:ZooKeeperServerMain@67] - Usage: ZooKeeperServerMain configfile | port datadir [ticktime] [maxcnxns]  
Usage: ZooKeeperServerMain configfile | port datadir [ticktime] [maxcnxns]  
ZOOKEEPER\u HOME
etc是否正确

更新/解决方案
zkServer[start]
-是一种有文件证明的合法启动方式-但这会产生错误-无法找出原因。所以只要
zkServer
就可以开始了。

admin server的端口8080冲突:您可以终止此端口上的现有进程(需要一些操作)。或者您可以在不同的端口上启动管理(甚至完全禁用管理服务器)。这在文档中没有明确记录-

在共同努力下,解决方案是在不启动的情况下运行它,只需

> zkServer
..并确保端口8080上没有运行任何其他内容,以便AdminServer能够启动,避免此情况:

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.
  Caused by: java.io.IOException: Failed to bind to /0.0.0.0:8080
  Caused by: java.net.BindException: Address already in use: bind.

我猜正确的字符串应该是
apache-zookeeper-3.5.6
没有
-bin
问题是zookeeper正在选择路径,我只设置了zookeeper\u主页。路径名中的
-bin
实际上是目录名,而不是
\bin
C:\apps\apache\apache-zookeeper-3.5.6-bin\conf\zoo.cfg
文件中的内容是应用程序配置文件。如果我检查实际的windows cmd文件,它会显示
set ZOOCFGDIR=%~dp0%..\conf
conf
bin
目录是同一级别的。它显然试图将字符串解析为数字。但它没有做到这一点。我看到的唯一数字是3.5.6。如果动物园管理员假设数字没有扩展为
-bin
,那么它可能试图解析6-bin。如果是这种情况,最简单的解决方案是将整个内容移动到一个名为
apache-zookeeper-3.5.6
的新目录。但是有很多假设。