Installing Elasticsearch 5.0 as Service on Windows

In previous version (example Elasticsearch 1.7 ), we have used service.bat script to create an 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 add before installing the Elasticsearch service, which is the part of the 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 the following line in config if we are using 32 bit Windows

-Xss320k

We have to add the following line in config if we are using 64 bit Windows

-Xss1m

 

Elasticsearch Service can be installed with the following command

elasticsearch-service.bat install

elastic-installation

We can set various elasticsearch service options using the manager available in elasticsearch-service script.

elasticsearch-service.bat manager

I’m adding few snapshots of various options available. And also have a look at my previous post of installing Elasticsearch 1.x versions. (How to install Elasticsearch?)

This slideshow requires JavaScript.

Happy exploring data 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s