[英]elasticsearch positional arguments not allowed
在嘗試啟動 elasticsearch(7.9 版)節點時,使用以下命令:
D:\temp\elasticsearch-7.9.2> .\bin\elasticsearch.bat -Ecluster.name=my_cluster -Enode.name=node_2 Epath.data=data
我得到了錯誤:
D:\temp\elasticsearch-7.9.2>.\bin\elasticsearch.bat -Ecluster.name=my_cluster -Enode.name=node_2 E node.path.data=data
future versions of Elasticsearch will require Java 11; your Java version from [C:\Program Files\Java\jdk1.8.0_181\jre] does not meet this requirement
future versions of Elasticsearch will require Java 11; your Java version from [C:\Program Files\Java\jdk1.8.0_181\jre] does not meet this requirement
Warning: with JDK 8 on Windows, Elasticsearch may be unable to derive correct
ergonomic settings due to a JDK issue (JDK-8074459). Please use a newer
version of Java.
Warning: MaxDirectMemorySize may have been miscalculated due to JDK-8074459.
Please use a newer version of Java or set MaxDirectMemorySize explicitly.
Starts Elasticsearch
Option Description
------ -----------
-E <KeyValuePair> Configure a setting
-V, --version Prints Elasticsearch version information and exits
-d, --daemonize Starts Elasticsearch 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 output/error streams logging in console
-s, --silent Show minimal output
-v, --verbose Show verbose output
ERROR: Positional arguments not allowed, found [E, node.path.data=data]
我錯過了破折號 - 在路徑參數前面(我輸入:Epath.data=data 而不是 -Epath.data=data)
一旦解決了這個問題,節點就會啟動
D:\temp\elasticsearch-7.9.2>.\bin\elasticsearch.bat -Ecluster.name=my_cluster -Enode.name=node_2 -Epath.data=data
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.