windows - elasticsearch位置参数不允许

标签 windows elasticsearch

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

相关文章:

python - 通过 Google Cloud SDK 更新后无法启动 App Engine 应用程序

windows - Unity独立构建未运行

windows - 使用 Windows 服务器负载平衡 PostgreSQL

c - C 和 D 中相同的_exact_代码会给出不同的结果——为什么?

elasticsearch - 使用elasticquent lib创建Elasticsearch映射时出错

windows - SetFileBandwidthReservation 会影响内存映射文件的性能吗?

elasticsearch - 从Elastic Search中的结果获取每个坐标的距离

java - 使用非常高的 CPU 和内存的 Elasticsearch Java

elasticsearch - 为什么_explain返回的文档匹配:_search不返回true?

elasticsearch - 使用环境变量设置elasticsearch的集群名称