In previous version (example Elasticsearch 1.7 ), we have used service.bat script to create a Elasticsearch windows service.(link)
In Elasticsearch 5.0, the same achieved using the script named “elasticsearch-service.bat” which is available inside the bin folder of Elasticsearch package.
The following services are available in package
elasticsearch-service-x64 - 64 bit elasticsearch-service-x86 - 32 bit
Base on our JDK architecture, the appropriate service will be installed.
One more configuration needs to added before installing the Elasticsearch service, which is the part of installation process in Elastic 5.0 version.
We need to update the thread stack size setting in the file jvm.options, which is available in the path of config folder.
We have to add following line in config if we are using 32 bit Windows
We have to add following line in config if we are using 64 bit Windows
Elasticsearch Service can be installed with following command
We can set various elasticsearch service options using the manager available in elasticsearch-service script.
I’m adding few snapshots of various options available. And also have a look into my previous post of installing Elasticsearch 1.x versions. (How to install Elasticsearch?)
Happy exploring data 🙂