X-Pack is not supported and Machine Learning is not available for [windows-x86]

Hi,

I'm trying ELK 5.4 on Windows but I have a problem with X-Pack and Machine Learning.

When I start Elasticsearch, I have an exception :

[2017-05-09T14:09:59,381][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: ElasticsearchException[X-Pack is not supported and Machine Learning is not available for [windows-x86]; you can use the other X-Pack features (unsupported) by setting xpack.ml.enabled: false in elasticsearch.yml]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:127) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:114) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:67) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.cli.Command.main(Command.java:88) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) ~[elasticsearch-5.4.0.jar:5.4.0]
Caused by: org.elasticsearch.ElasticsearchException: X-Pack is not supported and Machine Learning is not available for [windows-x86]; you can use the other X-Pack features (unsupported) by setting xpack.ml.enabled: false in elasticsearch.yml
at org.elasticsearch.xpack.ml.MachineLearningFeatureSet.isRunningOnMlPlatform(MachineLearningFeatureSet.java:112) ~[?:?]
at org.elasticsearch.xpack.ml.MachineLearningFeatureSet.isRunningOnMlPlatform(MachineLearningFeatureSet.java:103) ~[?:?]
at org.elasticsearch.xpack.ml.MachineLearning.createComponents(MachineLearning.java:285) ~[?:?]
at org.elasticsearch.xpack.XPackPlugin.createComponents(XPackPlugin.java:288) ~[?:?]
at org.elasticsearch.node.Node.lambda$new$7(Node.java:410) ~[elasticsearch-5.4.0.jar:5.4.0]
at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) ~[?:1.8.0_131]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) ~[?:1.8.0_131]
at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:1.8.0_131]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:1.8.0_131]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) ~[?:1.8.0_131]
at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:1.8.0_131]
at java.util.stream.ReferencePipeline.collect(Unknown Source) ~[?:1.8.0_131]
at org.elasticsearch.node.Node.(Node.java:412) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.node.Node.(Node.java:242) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.bootstrap.Bootstrap$6.(Bootstrap.java:242) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:242) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:360) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123) ~[elasticsearch-5.4.0.jar:5.4.0]
... 6 more

Is it normal ? I didn't read that ML modules were not available for Windows

Hi Pierre,

Unfortunately we don't build ML for 32bit architectures. Elastic only support x86_64 in general, you can find more details here https://www.elastic.co/support/matrix#show_os.

As it says in the exception message you can run the other x-pack features unsupported by disabling ML. Set xpack.ml.enabled: false in elasticsearch.yml

Hi David,

I understand but I am using 64bit architecture. Maybe I didn't download the great version of elasticsearch ?
I tried installation with this link

1 Like

Are you using a 32 bit JVM? We're detecting whether the OS is 32 bit or 64 bit inside Java. We could potentially look at how to detect that the OS is 64 bit even though the JVM is 32 bit, but is there any reason why you can't just use a 64 bit JVM?

1 Like

The default Java version on java.com is 32 bit.
I changed it and it works.

Thanks for your help.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.