Sunday, October 29, 2017

Elasticsearch

Elasticsearch is a distributed, RESTful search and analytics engine capable of solving a growing number of use cases. As the heart of the Elastic Stack, it centrally stores your data so you can discover the expected and uncover the unexpected. This is a snippet about Elasticsearch from their site https://www.elastic.co/products/elasticsearch. It is a highly efficient index store which offers a great performance.


I have used Elasticsearch for two use cases ie: searching and logging. This blog post will guide you through installing Elasticsearch on a windows machine. As an extension to this post, I will write about clustering and other use cases like ELK in future posts.

Installation
  1. Elasticsearch requires Java Runtime Environment. So go ahead and install it on your Windows Machine.

  2. After installing JRE, navigate to Control Panel --> System and Security --> Advanced System Properties --> Advanced Tab --> Environment Variables and create a new System Variable JAVA_HOME and set and the value to the JRE path.


  3. Download Elasticsearch from https://www.elastic.co/downloads/elasticsearch and extract it to a folder say C:/Deploy/ElasticSearchvx.x.

  4. Open a command prompt in admin mode and change directory to the above folder and run the command service install.This installs Elasticsearch as a service. You can also run it by executing the command elasticsearch.bat 






  5. Open Services window by entering services.msc in Run (Windows + R) and ensure that Elasticsearch service is running.




  6. Navigate to localhost:9200 on your browser and you must see an Elasticsearch status page if everything went well.





  7. You can install Sense Extension for Chrome to interact with elasticsearch
This concludes the simple guide to install Elasticsearch on a Windows Machine as a service. Please share your comments and queries and stay tuned for more posts on this series.

No comments: