elasticsearch 为什么可以';我的非主节点是否在Elasticsearch中从主节点获取索引?,elasticsearch,elasticsearch" /> elasticsearch 为什么可以';我的非主节点是否在Elasticsearch中从主节点获取索引?,elasticsearch,elasticsearch" />

elasticsearch 为什么可以';我的非主节点是否在Elasticsearch中从主节点获取索引?

elasticsearch 为什么可以';我的非主节点是否在Elasticsearch中从主节点获取索引?,elasticsearch,elasticsearch,我一直在为工作准备一堆麋鹿。到目前为止,一切都进行得很顺利,所以我现在要处理设置的下一部分:创建集群 我对配置文件进行了更改(如下),以将单个节点转变为群集主机: elasticsearch.yml (master) cluster.name: skunkworks node.name: node-1 node.master: true node.data: true network.host: _non_loopback:ipv4_ network.bind_host: 0.0.0.0 dis

我一直在为工作准备一堆麋鹿。到目前为止,一切都进行得很顺利,所以我现在要处理设置的下一部分:创建集群

我对配置文件进行了更改(如下),以将单个节点转变为群集主机:

elasticsearch.yml (master)
cluster.name: skunkworks
node.name: node-1
node.master: true
node.data: true
network.host: _non_loopback:ipv4_
network.bind_host: 0.0.0.0
discovery.zen.ping.unicast.hosts: ["127.0.0.1", "<IP of slave server deleted>"]
discovery.zen.ping.multicast.enabled: false
……还有

[2016-01-20 20:39:48,822][DEBUG][action.admin.indices.stats] [node-3] [indices:monitor/stats] failed to execute operation for shard [[.kibana][0], node[c2IE_LtZQGSVPoaFyqvPlA], [R], v[9], s[INITIALIZING], a[id=yk8xq3SGSOquHXcY_Ouy3Q], unassigned_info[[reason=NODE_LEFT], at[2016-01-20T20:03:11.455Z], details[node_left[0N9oUHcrRT6i-DD5VX2BeQ]]]]
[.kibana][[.kibana][0]] BroadcastShardOperationFailedException[operation indices:monitor/stats failed]; nested: IndexNotFoundException[no such index];
…反复无常

我已经与telnet进行了检查,以确保我可以从另一个节点到达每个节点,并且所有端口都已打开。node-3的数据目录中并没有任何数据,我以为会被master的数据目录填满

根据NODE_LEFT异常,我假设NODE-3被踢出了池。。。但node-1会看到它,直到我关闭node-3上的elasticsearch(此时,有一条带有断开状态的日志行)

有人知道为什么我的集群会形成,但从节点不接受数据吗


更新:如果我在从属节点上执行运行状况检查,它将返回一个
找不到主节点
错误。这对我来说似乎很合理,只是大师理论上可以看到它。

我花了一些时间挖掘日志级别以进行调试,这是我首先应该做的。我以前在主节点上安装了shield,但后来在设置集群之前删除了它,以减少我处理的变量数量。然而,我并没有摆脱许可插件目录

结果,我的主人在与我的奴隶沟通时不断出错,但在信息层面上却没有显示出来。删除许可证目录完全消除了该问题

[2016-01-20 20:39:58,954][DEBUG][action.admin.indices.stats] [node-3] [indices:monitor/stats] failed to execute operation for shard [[logstash-2016.01.20][0], node[c2IE_LtZQGSVPoaFyqvPlA], [R], v[9], s[INITIALIZING], a[id=Ap12JxKSS-mHHchnwaLWCw], unassigned_info[[reason=NODE_LEFT], at[2016-01-20T20:03:11.455Z], details[node_left[0N9oUHcrRT6i-DD5VX2BeQ]]]]
[logstash-2016.01.20][[logstash-2016.01.20][0]] BroadcastShardOperationFailedException[operation indices:monitor/stats failed]; nested: IndexNotFoundException[no such index];
[2016-01-20 20:39:48,822][DEBUG][action.admin.indices.stats] [node-3] [indices:monitor/stats] failed to execute operation for shard [[.kibana][0], node[c2IE_LtZQGSVPoaFyqvPlA], [R], v[9], s[INITIALIZING], a[id=yk8xq3SGSOquHXcY_Ouy3Q], unassigned_info[[reason=NODE_LEFT], at[2016-01-20T20:03:11.455Z], details[node_left[0N9oUHcrRT6i-DD5VX2BeQ]]]]
[.kibana][[.kibana][0]] BroadcastShardOperationFailedException[operation indices:monitor/stats failed]; nested: IndexNotFoundException[no such index];