isharryf commented on issue #921: Fixed bug in Java_Home
URL: https://github.com/apache/zookeeper/pull/921#issuecomment-486949344
 
 
   ==> Running it with nomad:
   task "zookeeper" {
         driver = "raw_exec"
   
         config {
           command = "F:/infra/zookeeper-3.4.11/bin/zkServer.cmd"
         }
   
         # Controls the timeout between signalling a task it will be killed
         # and killing the task. If not set a default is used.
         kill_timeout = "10s"
       } 
   
   ==> the zkServer.cmd does:
   setlocal
   call "%~dp0zkEnv.cmd"
   
   set ZOOMAIN=org.apache.zookeeper.server.quorum.QuorumPeerMain
   echo on
   call %JAVA% "-Dzookeeper.log.dir=%ZOO_LOG_DIR%" 
"-Dzookeeper.root.logger=%ZOO_LOG4J_PROP%" -cp "%CLASSPATH%" %ZOOMAIN% 
"%ZOOCFG%" %*
   
   endlocal
   
   ==> and the zkEnv.cmd sets the %JAVA%:
   set JAVA="%JAVA_HOME%"\bin\java              <-- here is the error

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to