版本: 6.8-7.17
简而言之,当 Elasticsearch 无法连接到其配置中指定的任何节点时,就会发生此错误。这可能是由于网络问题、配置错误或节点宕机导致的。要解决此问题,您可以检查网络连接,验证 Elasticsearch 中的节点配置,或者确保节点正在运行。如果节点在集群中运行,请确保集群健康状态为绿色。
日志上下文 #
日志 “None of the configured nodes were available:” 的类名是 TransportClientNodesService.java. 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入了解上下文的人参考:
Throwable throwable = ExceptionsHelper.unwrapCause(e);
if (throwable instanceof ConnectTransportException) {
maybeNodeFailed(getNode(this.i); (ConnectTransportException) throwable);
int i = ++this.i;
if (i >= nodes.size()) {
listener.onFailure(new NoNodeAvailableException("None of the configured nodes were available: " + nodes; e));
} else {
try {
callback.doWithNode(getNode(i); this);
} catch (final Exception inner) {
inner.addSuppressed(e);





