Thursday, February 17, 2022

install elasticsearch and kibana on windows

For Windows Users

In the lectures I'm using the Mac operating system so I covered how to install java 8 and configure Elasticsearch 6.3.2 and Kibana 6.3.2 on the Mac. For windows follow the instructions below. The high level steps are the same but for windows users, it should be even easier.

Java Runtime:

Verify installed version of Java Runtime Environment or install it. Latest JDK 8 is strongly recommended.

  • Check available JDK using command line: java -version. Expected output: java version 1.8.0_73. Last numbers might be different, but 1.8 is expected.

  • Check system variables. Required environment variable: JAVA_HOME pointing to install location of JDK. Example:

    JAVA_HOME: C:\Program Files\Java\jre1.8.0_73

    Installing Elasticsearch 6.3.2 and Kibana 6.3.2:

  • Download Elasticsearch 6.3.2 zip file from https://www.elastic.co/downloads/past-releases.

  • Unzip downloaded file to location where your application will run from. C:\Program Files\Elasticsearch-6.x

  • Download Kibana 6.3.2 from: https://www.elastic.co/downloads/past-releases.

  • Unzip downloaded file to location where your application will run from. Similar to what you did for Elasticsearch.

  • In this course, we use version which is 6.3.2 so make sure you select the Kibana product and the correct version (6.3.2) from the link provided above.

  • Open config/kibana.yml in an editor 

  • Set elasticsearch.url to point at your Elasticsearch instance. By default this will be localhost:9200 as mentioned in the configuration file. You can just uncomment that line by removing the preceding pound sign (#).

Running Elasticsearch and Kibana:

1). First start elasticsearch: bin\elasticsearch.bat on Windows

2). Next start Kibana: bin\kibana.bat on Windows


No comments:

Post a Comment