2017-08-15 48 views
1

木箱版本:2.1.5 OS:啓動錯誤:E不是公認的選項

PS D:\Dev\Crate\crate-2.1.5\bin> .\crate.bat 
starts CrateDB 

Option   Description 
-C <KeyValuePair>  Configure a setting 
-V, --version   Prints CrateDB version information and exits 
-d, --daemonize  Starts CrateDB in the background 
-h, --help   show help 
-p, --pidfile <Path> Creates a pid file in the specified path on start 
-q, --quiet   Turns off standard ouput/error streams logging in console 
-s, --silent   show minimal output 
-v, --verbose   show verbose output 
**ERROR: E is not a recognized option** 

Java path is : "C:\Program Files\Java\jdk1.8.0_131\bin\java" -Xms256m -Xmx1g -Xss256k -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+DisableExplicitGC -Djna.nosys=true -Dfile.encoding=UTF-8 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j.skipJansi=true -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -cp "D:\Dev\Crate\crate-2.1.5/lib/;D:\Dev\Crate\crate-2.1.5/lib/enterprise/;D:\Dev\Crate\crate-2.1.5/lib/sigar/*" "io.crate.bootstrap.CrateDB" -Epath.home="D:\Dev\Crate\crate-2.1.5" -V

你有:WINDOWS

我開始蒙山crate.bat時有一個錯誤一樣的問題?

有關錯誤可能來自哪裏的想法?

感謝

+0

改進的格式 – Fabien

回答

0

工作圍繞其間:

在crate.bat,更換

set CRATE_PARAMS=-Epath.home="%CRATE_HOME%" 

通過

set CRATE_PARAMS=-Cpath.home="%CRATE_HOME%" 

,並刪除:

) else if "!param:~0,2!" equ "-C" (
     set param=!param:-C=-E! 

來源:https://github.com/crate/crate/pull/6142

相關問題