Learn how to install Elasticsearch in a system running the Windows operating system.
- [Karthik] Chapter Three: Installing and Starting Elasticsearch. In this video, we are going to take a look at the prerequisites for installing Elasticsearch, followed by the installation procedure. Finally, we'll be testing the installation process of Elasticsearch instance. Installation of Elasticsearch. Elasticsearch can be installed in a variety of operating systems, but in this video, I will demonstrate you on how to install Elasticsearch in a system running in Windows operating system. The two major prerequisite is to have a Windows system with at least 2 GB RAM, the other being the installation of the latest version of Oracle JDK in the system.
The installation package for Elasticsearch can be downloaded from the link provided below. In this page, you can see the download link for the latest version of Elasticsearch. The latest version of Elasticsearch now, when the video was recorded, is 5.1.1. If in case you want to have a previous installation to be installed in your system, you can go to the past releases tab and download the installation package for a past release.
We can now download the file as a ZIP file. Before installing Elasticsearch, if we want to modify the default installation properties, we need to traverse to the config folder. In the config folder, we can find a YML file by the name elasticsearch.yml. Now, let's see how the default properties can be modified in the YML file. We can see that all the lines in the YML file has been commented, which suggests that the installation will be happening with the default properties.
Suppose if I want to change the cluster name to a specific name of our choice, we need to uncomment this line. By default, the cluster name could have been Elasticsearch. Now, let us have this as Packt. Next, the node name is assigned with the random alphanumeric character by default, but for this video demonstration, let us have it with a specified node name as Packtnode.
Going further below, you can see that the port in which the Elasticsearch instance will be installed is 92 double 0. We don't have to change this as of now, as it is good for use with the same. The terms "cluster" and "node" may be new to you, but we will be getting to know more in detail about these terms in the next section, which is dedicated to Elasticsearch. With all set, we can now proceed with the installation process. In order to install Elasticsearch as a service, we need to execute the elasticsearch-service BAT file, which is placed under the bin folder in the Elasticsearch package.
Open Command Prompt and make sure the user executing these commands have administrative access. Now, we need to traverse to the folder in which the elasticsearch-service.bat file is located. Before the installation, I just want to show you that there is no service by the name Elasticsearch available in the service list.
To install Elasticsearch, run the elasticsearch-service BAT file. Before you execute the elasticsearch-service BAT file, the argument provided should be installed. Now, you can see that the service elasticsearch-service has been installed successfully in the system. To start the service, please provide the following commands.
Now, the Elasticsearch instance is installed and started in the system. Let's now go to the services tab and check if the service has been created. I will refresh it so that we can see that we now have a service by the name Elasticsearch 5.1.1, and it is in started state. Finally, we will be testing the installation process for Elasticsearch by hitting the local host on the port number 92 double 0.
You can see now that the cluster name in which the Elasticsearch instance has been created is Packt, and the node name is Packtnode. In the next video, we will be seeing about the installation process for Logstash and Kibana.
This course was created and produced by Packt Publishing. We are honored to host this training in our library.
- Elasticsearch concepts
- Working with Logstach and Kibana
- Elasticsearch Query DSL
- Aggregation and analyzers
- Scripting in Elasticsearch
- Using plugins and APIs
- Building an interface with dashboards
- Filtering and processing input
- Loading data to Elasticsearch