Step by Step installation of Elastic Search on Windows

Connect with

elastic search
If you are going to install elastic search you can have various question in your mind , like how to install elastic on windows platform? The step by step process of installation of Elastic will be learned via this post. Although, the installation of Elastic is very simple on any environment either on Windows or different flavor of Linux. Please follow following step of installation and you are done with installation part of it.

Step #1 Prerequisite

  1. Check whether JDK 7 or higher version of JDK install or not , you must have it in your system.
  2. and check JAVA_HOME environment configured or not .

If you want to know, how to configure JAVA_HOME environment variable, you can visit our previous post

Open terminal/command prompt and type following command to check JAVA_HOME environment variable and java version.

java -version
echo %JAVA_HOME%

Console Output

C:\Users\ranjeet>java -version
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

C:\Users\ranjeet>echo %JAVA_HOME%
C:\JDK7\jdk1.7.0_65

Step #2 Download Elastic Search

Download stable version of Elastic search .zip file from elastic search official website. I have downloaded 2.4.0 version.

Step 3: UnZip and Copy

Unzip downloaded .zip file and copy into your specific folder wherever you want to put. I kept in location: E:\noSQL\elasticsearch-2.4.0\bin


Run Elastic server

If you want to run without service of elastic, go to /bin folder. in our case I kept in E:\>cd noSQL\elasticsearch-2.4.0\bin

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\ranjeet>e:

E:\>cd noSQL\elasticsearch-2.4.0\bin\

E:\noSQL\elasticsearch-2.4.0\bin>
E:\noSQL\elasticsearch-2.4.0\bin>
E:\noSQL\elasticsearch-2.4.0\bin>dir
 Volume in drive E is New Volume
 Volume Serial Number is 50F7-0BAD

 Directory of E:\noSQL\elasticsearch-2.4.0\bin

09/17/2016  09:42 PM              .
09/17/2016  09:42 PM              ..
08/23/2016  04:46 PM             5,551 elasticsearch
07/26/2016  04:09 PM           104,448 elasticsearch-service-mgr.exe
07/26/2016  04:09 PM           103,936 elasticsearch-service-x64.exe
07/26/2016  04:09 PM            80,896 elasticsearch-service-x86.exe
08/23/2016  04:46 PM               909 elasticsearch.bat
08/23/2016  04:46 PM             3,307 elasticsearch.in.bat
08/23/2016  04:46 PM             2,814 elasticsearch.in.sh
08/23/2016  04:46 PM             2,992 plugin
08/23/2016  04:46 PM             1,303 plugin.bat
08/23/2016  04:46 PM             6,872 service.bat
              10 File(s)        313,028 bytes
               2 Dir(s)  199,129,014,272 bytes free

E:\noSQL\elasticsearch-2.4.0\bin>elasticsearch
[2016-09-17 22:02:21,432][INFO ][node                     ] [Molecule Man] version[2.4.0], pid[7208], build[ce9f0c7/2016-
08-29T09:14:17Z]
[2016-09-17 22:02:21,434][INFO ][node                     ] [Molecule Man] initializing ...
[2016-09-17 22:02:23,371][INFO ][plugins                  ] [Molecule Man] modules [lang-groovy, reindex, lang-expression
], plugins [], sites []
[2016-09-17 22:02:23,448][INFO ][env                      ] [Molecule Man] using [1] data paths, mounts [[New Volume (E:)
]], net usable_space [185.4gb], net total_space [312.4gb], spins? [unknown], types [NTFS]
[2016-09-17 22:02:23,449][INFO ][env                      ] [Molecule Man] heap size [910.5mb], compressed ordinary objec
t pointers [true]
[2016-09-17 22:02:34,420][INFO ][node                     ] [Molecule Man] initialized
[2016-09-17 22:02:34,421][INFO ][node                     ] [Molecule Man] starting ...
[2016-09-17 22:02:36,009][INFO ][transport                ] [Molecule Man] publish_address {127.0.0.1:9300}, bound_addres
ses {[::1]:9300}, {127.0.0.1:9300}
[2016-09-17 22:02:36,025][INFO ][discovery                ] [Molecule Man] elasticsearch/8bcZpUP8T5mekU5WfTSLzg
[2016-09-17 22:02:40,114][INFO ][cluster.service          ] [Molecule Man] new_master {Molecule Man}{8bcZpUP8T5mekU5WfTSL
zg}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-join(elected_as_master, [0] joins received)
[2016-09-17 22:02:40,320][INFO ][gateway                  ] [Molecule Man] recovered [0] indices into cluster_state
[2016-09-17 22:02:41,485][INFO ][http                     ] [Molecule Man] publish_address {127.0.0.1:9200}, bound_addres
ses {[::1]:9200}, {127.0.0.1:9200}
[2016-09-17 22:02:41,487][INFO ][node                     ] [Molecule Man] started

Step 4: Access Elastic Server

Open your browser, and access URL: http://localhost:9200
Elastic by default use port 9200, so you can change it or use default settings. You should have output similar as follows on your browser.

{
name: "Fenris Wolf",
cluster_name: "elasticsearch",
version: {
number: "2.4.0",
build_hash: "ce9f0c7394dee074091dd1bc4e9469251181fc55",
build_timestamp: "2016-08-29T09:14:17Z",
build_snapshot: false,
lucene_version: "5.5.2"
},
tagline: "You Know, for Search"
}

Optional Step: install Elastic as Service on Window

If you want to install Elastic as service you can use following command and then go to service and you can configured auto start on window startup or you can start it manually.

C:\Users\ranjeet>e:
E:\>cd noSQL\elasticsearch-2.4.0\bin\
E:\>cd noSQL\elasticsearch-2.4.0\bin\elasticsearch install

Reference

Elastic Search official site

If you like this , you can write your comment and are welcome.


Connect with

1 thought on “Step by Step installation of Elastic Search on Windows

  1. Pingback: Rock23

Leave a Reply

Your email address will not be published. Required fields are marked *