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 :

 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;
 }

 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?