gpt4 book ai didi

windows - elasticsearch位置参数不允许

转载 作者:行者123 更新时间:2023-12-02 23:06:53 25 4
gpt4 key购买 nike

尝试使用以下命令启动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]

最佳答案

我错过了破折号-在path参数前面(我键入: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

关于windows - elasticsearch位置参数不允许,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64507819/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com