简体   繁体   English

无法访问elasticsearch节点

[英]Unable to access to elasticsearch nodes

I have an elastic cluster with 3 nodes which are located into 2 machines.我有一个包含 3 个节点的弹性集群,这些节点位于 2 台机器中。 Unfortunately the machine which has 2 of the 3 nodes has crashed and I can't access to its data.不幸的是,拥有 3 个节点中的 2 个的机器崩溃了,我无法访问它的数据。 And now I just have one node that can't start its job.现在我只有一个节点无法开始工作。 Its output shows the error:其输出显示错误:

java.lang.IllegalStateException: cannot start with [discovery.type] set to [single-node] when local node {elastics01}{f4PtBIkPSACZ_uEht1PnOA}{HtLbgM13RxWZuWMP19DIUA}{192.168.132.40}{192.168.132.40:9300}{cdfhilmrstw}{ml.machine_memory=6246580224, xpack.installed=true, transform.node=true, ml.max_open_jobs=512, ml.max_jvm_size=536870912} does not have quorum in voting configuration VotingConfiguration{z8C2zvqXQUu5bMwkmi9Wdw,f4PtBIkPSACZ_uEht1PnOA,kopBE3hDQAudaAbWU8lsEA} java.lang.IllegalStateException:当本地节点 {elastics01}{f4PtBIkPSACZ_uEht1PnOA}{HtLbgM13RxWZuWMP19DIUA}{192.168.132.40}{8.0df301m.40}{19232.40}{19232.131.040.1923.192.1923.1923.192.010.00.000.00 时,无法以 [discovery.type] 设置为 [single-node] 开始.machine_memory=6246580224, xpack.installed=true, transform.node=true, ml.max_open_jobs=512, ml.max_jvm_size=536870912} 在投票配置中没有法定人数 VotingConfiguration{z8C2zvqXQUu5bMwkmi9Z3PAWdwphpAwkmi4Z3PAWdwAphP

Any help would be appreciated任何帮助,将不胜感激

if you are running 7.X, and unless you have a snapshot (a backup), then you are out of luck because you have lost quorum如果您正在运行 7.X,并且除非您有快照(备份),那么您将不走运,因为您已经失去了法定人数

from https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery-quorums.html;来自https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery-quorums.html;

To be sure that the cluster remains available you must not stop half or more of the nodes in the voting configuration at the same time .为了确保集群保持可用,您不能同时停止投票配置中的一半或更多节点 As long as more than half of the voting nodes are available the cluster can still work normally.只要超过一半的投票节点可用,集群仍然可以正常工作。 This means that if there are three or four master-eligible nodes, the cluster can tolerate one of them being unavailable.这意味着如果有三个或四个符合主节点条件的节点,集群可以容忍其中一个节点不可用。 If there are two or fewer master-eligible nodes, they must all remain available.如果有两个或更少的符合主节点条件的节点,它们必须全部保持可用。

this is likely very frustrating, however this is how Elasticsearch works with it's distributed model, which is why it's explicitly called out in the docs这可能非常令人沮丧,但是这就是 Elasticsearch 使用它的分布式模型的方式,这就是为什么在文档中明确指出它的原因

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM