我正在尝试使用python设置elasticsearch,作为其中的一部分,我试图从youtube数据中进行搜索(作为示例)。
我正在将Windows 10 X64计算机与elasticsearch 6.5.4一起使用。
运行以下命令时,出现错误
PS C:\Users\XXXXX\elasticsearch-6.5.4\bin> .\elasticsearch cluster.name=youtube node.name=video
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 [cluster.name=youtube, node.name=video]
答案 0 :(得分:0)
用法/帮助信息中提到您需要传递-E
来设置配置:
-E配置设置
在他们的Getting Started / Installation步骤中也提到了它:
如前所述,我们可以覆盖集群或节点 名称。可以在启动时从命令行完成 Elasticsearch如下:
./elasticsearch -Ecluster.name=my_cluster_name -Enode.name=my_node_name