Elasticsearch集群设置疑惑:在ES 6.5中,集群设置的unicast_hosts.txt文件放在哪里?
在elasticsearch网站(6.5)中,提到要将unicast_hosts.txt文件放在以下目录中:
$ES_PATH_CONF/discovery-file/unicast_hosts.txt我已经安装了ES 6.5
[root@xxxx discovery-file]# pwd
/usr/share/elasticsearch/plugins/discovery-file
[root@xxxx discovery-file]# ls -ltr
-rw-r--r--. 1 root root 1503 May 20 16:21 plugin-descriptor.properties
-rw-r--r--. 1 root root 152 May 20 16:21 NOTICE.txt
-rw-r--r--. 1 root root 6368 May 20 16:21 discovery-file-6.5.4.jar
-rw-r--r--. 1 root root 11358 May 20 16:21 LICENSE.txt现在,我需要将unicast_hosts.txt放在discovery-file-6.5.4.jar中还是只放在这个目录中。
请给我建议!
发布于 2019-05-20 19:58:20
以下是我在discuss上提供的答案
它应该在elasticsearch配置目录中。与您的elasticsearch.yml相同的目录。
因此,如果您的配置目录是:/foo,则将此文件放在/foo/discovery-file/unicast_hosts.txt下。
根据您安装elasticsearch的方式,它可能在/etc/elasticsearch/discovery-file/unicast_hosts.txt中。
请注意,您还需要将以下内容添加到elasticsearch.yml文件:
discovery.zen.hosts_provider: filehttps://stackoverflow.com/questions/56220278
复制相似问题