You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Alvaro Gareppe (JIRA)" <ji...@apache.org> on 2014/08/26 15:23:57 UTC
[jira] [Created] (ZOOKEEPER-2021) ZKserver.cmd fails usng the
config param
Alvaro Gareppe created ZOOKEEPER-2021:
-----------------------------------------
Summary: ZKserver.cmd fails usng the config param
Key: ZOOKEEPER-2021
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2021
Project: ZooKeeper
Issue Type: Bug
Components: server
Affects Versions: 3.4.6
Environment: Windows
Reporter: Alvaro Gareppe
When usgin the command like this:
zkServer.cmd zoo.cfg
we get this error:
ERROR: Invalid arguments, exiting abnormally
java.lang.NumberFormatException: For input string :"C:\Development\zookeeperserver-3.4.6\bin\..\conf\zoo.cfg"
Patch (Workaround):
change the code in zkServer.cfg to:
setlocal
call "%~dp0zkEnv.cmd"
set ZOOCFG=%ZOOCFGDIR%\%1
set ZOOMAIN=org.apache.zookeeper.server.quorum.QuorumPeerMain
echo on
java "-Dzookeeper.log.dir=%ZOO_LOG_DIR%" "-Dzookeeper.root.logger=%ZOO_LOG4J_PROP%" -cp "%CLASSPATH%" %ZOOMAIN% "%ZOOCFG%"
endlocal
--
This message was sent by Atlassian JIRA
(v6.2#6252)