📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 6.8-8.9

简而言之,当 Elasticsearch 尝试连接到一个未定义或值为空的节点时,就会出现此错误。这可能是由于配置设置不正确或网络问题导致的。要解决此问题,请确保节点在配置文件中正确定义,并且网络连接稳定。另外,检查节点是否正在运行。如果问题仍然存在,考虑重启 Elasticsearch 集群或导致问题的特定节点。

日志上下文 #

日志 “can’t connect to a null node” 的类名是 ClusterConnectionManager.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:

ActionListenerlistener
 ) throws ConnectTransportException {  ConnectionProfile resolvedProfile = ConnectionProfile.resolveConnectionProfile(connectionProfile; defaultProfile);
 if (node == null) {
 listener.onFailure(new ConnectTransportException(null; "can't connect to a null node"));
 return;
 }  if (acquireConnectingRef() == false) {
 listener.onFailure(new ConnectTransportException(node; "connection manager is closed"));