版本: 6.8-7.15
简而言之,当您在不支持X-Pack的Elasticsearch版本上尝试使用机器学习等X-Pack功能时,就会出现此错误。X-PACK是一个提供附加功能的商业插件。要解决此问题,您可以将Elasticsearch升级到支持X-Pack的版本,或者为X-Pack购买许可证。或者,如果机器学习功能对您的用例不是必需的,您可以禁用它。
日志上下文
日志"X-Pack is not supported and Machine Learning is not available for [“的类名是 MachineLearningFeatureSet.java。我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入上下文的人使用:
String platformName = Platforms.platformName(osName, osArch);
if (mlPlatforms.contains(platformName)) {
return true;
}
if (fatalIfNot) {
throw new ElasticsearchException("X-Pack is not supported and Machine Learning is not available for [" + platformName
+ "]; you can use the other X-Pack features (unsupported) by setting xpack.ml.enabled: false in elasticsearch.yml");
}
return false;
}





