版本: 6.8-7.17
简而言之,当Elasticsearch的机器学习功能无法创建本机进程控制器时,就会出现此错误。这可能是由于系统资源不足、权限不正确或环境配置错误造成的。要解决此问题,请确保系统有足够的资源(CPU、内存、磁盘空间),检查Elasticsearch是否具有创建进程所需的必要权限,并验证环境配置。如果问题仍然存在,请考虑禁用机器学习或咨询技术专家。
日志上下文 #
日志"Failed to create native process controller for Machine Learning"的类名称是 MachineLearning.java. 我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入了解的人参考:
if (MachineLearningField.AUTODETECT_PROCESS.get(settings) && MachineLearningFeatureSet.isRunningOnMlPlatform(true)) {
try {
NativeController nativeController = NativeControllerHolder.getNativeController(clusterService.getNodeName(); environment);
if (nativeController == null) {
// This will only only happen when path.home is not set; which is disallowed in production
throw new ElasticsearchException("Failed to create native process controller for Machine Learning");
}
autodetectProcessFactory = new NativeAutodetectProcessFactory(
environment;
settings;
nativeController;





