X-Pack is not supported and Machine Learning is not available for – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 6.8-7.15

Briefly, this error occurs when you’re trying to use X-Pack features like Machine Learning on a version of Elasticsearch that doesn’t support it. X-Pack is a commercial plugin that provides additional features. To resolve this issue, you can either upgrade your Elasticsearch to a version that supports X-Pack or purchase a license for X-Pack. Alternatively, you can disable the Machine Learning feature if it’s not necessary for your use case.

This guide will help you check for common problems that cause the log ” X-Pack is not supported and Machine Learning is not available for [ ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.

Log Context

Log “X-Pack is not supported and Machine Learning is not available for [” class name is MachineLearningFeatureSet.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
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;
}
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; }
 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;
 }

 

 [ratemypost]

Opster
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.