As always, you need to report the issue to get more feedback. So it took several minutes before I got any log at all. Is that normal? Is it normal that an out-of-the-box run on MacOs fails with
ElasticsearchException[Failure running machine learning native code. This could be due to running on an unsupported OS or distribution, missing OS libraries, or a problem with the temp directory. To bypass this problem by running Elasticsearch without machine learning functionality set [xpack.ml.enabled: false].]
wget --no-check-certificate https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.0-darwin-x86_64.tar.gz
tar xzf elasticsearch-7.10.0-darwin-x86_64.tar.gz
cd elasticsearch-7.10.0
bin/elasticsearch
And everything went well on my side.
Note that Elasticsearch is providing a default JVM for the machine so normally everything should be ok.
I'm wondering if there are any global java options, or settings that would overload the default behavior...
Could you check your jvm settings if any? Like do you have a $JAVA_HOME set? In which case bin/elasticsearch-env uses it.
I had indeed a JAVA_HOME set (or java on my path in general). I unset the former and that didn't change anything. I copy/pasted the 4 instructions above and I had to wait 4+ minutes to get anything showing up (once it had downloaded and extracted the bits).
I can see a number of process running. JavaVersionChecker. Then nothing for a long period of time, jps not showing any extra process.
A colleague with similar setup as mine does not have the problem and I have no idea where that could come from.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.