版本: 6.8-7.17
简而言之,当 Elasticsearch 无法与其机器学习(ML)组件交互时,会出现此错误。这可能是由于配置问题、ML 进程问题或缺少必要的资源导致的。要解决此问题,请确保 Elasticsearch 中的 ML 设置配置正确。检查系统的资源,因为 ML 需要足够的内存和 CPU。同时,验证 ML 进程是否正常运行。如果问题仍然存在,请考虑重启 Elasticsearch 服务。
日志上下文 #
日志 “Cannot communicate with Machine Learning native code” 的类名是 MachineLearningFeatureSet.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的用户参考:
nativeCodeInfo = nativeController.getNativeCodeInfo();
}
}
} catch (IOException | TimeoutException e) {
LogManager.getLogger(MachineLearningFeatureSet.class).error("Cannot get native code info for Machine Learning"; e);
throw new ElasticsearchException("Cannot communicate with Machine Learning native code");
}
}
this.nativeCodeInfo = nativeCodeInfo;
}





