版本: 6.8-7.17
简而言之,当Elasticsearch无法在集群中找到任何符合主节点资格的节点时,会出现此错误。这可能是由于网络问题、配置错误或所有符合主节点资格的节点都宕机导致的。要解决此问题,请确保网络正常运行,并且节点已正确配置以实现相互发现。此外,请检查符合主节点资格的节点的健康状况,并在必要时重新启动它们。如果问题仍然存在,请考虑增加集群中符合主节点资格的节点数量。
日志上下文 #
日志"no known master nodes"的类名是 TransportDeleteRollupJobAction.java. 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:
} else {
// Delegates DeleteJob to the elected master node; so it becomes the coordinating node.
// Non-master nodes can have a stale cluster state, showing a job that has been cancelled on the master;
// This makes testing difficult.
if (nodes.getMasterNode() == null) {
listener.onFailure(new MasterNotDiscoveredException("no known master nodes"));
} else {
transportService.sendRequest(
nodes.getMasterNode(),
actionName,
request,





