My issue before after extracting was that I kept getting the "\Common was unexpected at this time" in the cmd prompt. I was able to get this to work using the following fix.
I've attached what my environment variable looks like for Java since I set it in Windows for anyone having a similar issue.
After this I ran the ElasticSearch .bat file. Resulting in some content being displayed, but unfortunately I cannot successfully curl the localhost:9200 port. This is a dump of the current logs. I have removed my name from the file and replaced them with [Redacted]. I actually ran the bat file a few times you can see from the logs repeating, but I still cannot curl the localhost port.
It looks like the issue now is related to attempting to run the Machine Learning features on 32 bit Windows, looking at the log file; Machine Learning is only available on 64 bit OS, so you should edit the elasticsearch.yml file in the config directory to disable it
xpack.ml.enabled: false
Then try starting Elasticsearch again with the bat file from the command line.
Looks like the environment variable may end in \ (double \\ before bin)? I'm not sure if this is the cause of the error, but if the environment variable does end in \, it may be worth removing it and trying again first.
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.