Elasticsearch error: \Common was unexpected at this time

Pranay    01 Apr '19    1101 views

Error: warning: Falling back to java on path. This behavior is deprecated. Specify JAVA_HOME\Common was unexpected at this time. Got this error when starting Elasticsearch for the first time.

I have downloaded and setup Elasticsearch on Windows using the zip file provided from Elasticsearch. When I try to start it from the command prompt, saw this error.

Elasticsearch startup error

Solution:

I have the JAVA_HOME variable under the system variables, but this did not solve the error. Later when I added this error under user variable it got resolved.

This error occurred as there was no JAVAHOME path available for the Elasticsearch to start. So add the JAVAHOME variable in the Windows environment variable and try to start the Elasticsearch again.

Environment var - JAVA_HOME

Did this solve your error? then get started with Elasticsearch and Kibana by uploading some data to elasticsearch using the below posts.

Upload bulk JSON data to ElasticSearch using Python

Upload bulk data from csv file to ElasticSearch using Python

Hope this helps you. Please comment your thoughts.

About the author

Pranay Deegoju
Sitecore Certified Professional

A Software Engineer by profession, a part time blogger and an enthusiast programmer. You can find more about me here.



Leave your comments on this post here


Want more such posts, subscribe here

Recent Posts

×

Liked this article?

Subscribe with your email and get updates when ever a new article is posted.

By subscribing you agree to our privacy terms. We promise that we do not sell your data.