【发布时间】:2018-11-06 02:31:45
【问题描述】:
我只是学习弹性搜索的初学者,并开始在 windows 10 机器上设置 2 节点集群。
我已经根据论坛和文章配置了两个节点。
但是,我可以启动第一个节点,但是在启动第二个节点时,它会引发错误。
[2018-11-05T16:07:31,935][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [elastic_search_node_02] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: failed to obtain node locks, tried [[C:\Elastic_search_cluster\data\elastic_search_cluster]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
以下是两个节点的设置,
节点 1 目录
C:\Elastic_search_cluster\elasticsearch-6.4.2_node01\
节点 2 目录
C:\Elastic_search_cluster\elasticsearch-6.4.2_node02\
数据文件夹
C:\Elastic_search_cluster\data\
日志文件夹
C:\Elastic_search_cluster\logs\
节点 1 配置
cluster.name: elastic_search_cluster
node.name: elastic_search_node_01
node.master: true
node.data: true
path.data: C:\Elastic_search_cluster\data\
path.logs: C:\Elastic_search_cluster\logs\
network.host: localhost
http.port: 9200
节点 2 配置
cluster.name: elastic_search_cluster
node.name: elastic_search_node_02
node.master: false
node.data: true
path.data: C:\Elastic_search_cluster\data\
path.logs: C:\Elastic_search_cluster\logs\
network.host: localhost
http.port: 9201
请就配置或任何其他建议提出建议。每个节点的数据和日志文件夹路径是否需要分开。
是否需要像下面这样设置其他参数?
discovery.zen.ping.unicast.hosts:
discovery.zen.minimum_master_nodes:
【问题讨论】:
标签: elasticsearch