ElasticSearch Installation Details Document

Configuration requirements

  1. The Elasticsearch 7.16.2 version has a dependency on JDK version 17.0.1. 

Java JDK 17.0.1 Installation

Elasticsearch 7.16.2 has a dependency on JDK version 17.0.1, below are the steps to install JDK 17.0.1:

  1. Download JDK 17.0.1 installer file.

  2. Double click on the downloaded file with the name “jdk-17_windows-x64_bin.exe”.

  3. The “Setup” window will be displayed as shown below. Press the “NEXT” button to continue the installation.

  4. The “Destination Folder” window will be displayed where the installation folder needs to be specified. Click on the “Next” button to continue with the default installation folder.

  5. A new window with the progress details will be displayed, the user would need to wait until the installation process would be completed.

  6. After successful installation, the completion window will be displayed with a success message. Click on the “Close” button. The installation is completed, now there is a need of configuring the environment variable for Java.

  1. To configure the Java environment variable, follow the below steps:

    1. Go to computer properties.

    2. Click on the “Advanced system settings” option.

    3. Click on the “Environment variables” button.

    4. Under the “System variables” section click on the “New” button to add the new system variable for JAVA.

    5. The “Edit System Variable” window will be displayed where valid values for the Variable name and the Variable value field need to be provided. The installed JDK path needs to be set as a value as shown in the below screenshot.
      NOTE: Elasticsearch 7.16.2 version searches for JAVA variable with name “ES_JAVA_HOME” so it’s mandatory to configure system variable with the same name.

    

Steps to install Elasticsearch 7.6 & 7.16.2 both versions on the same machine :

Following are two ways to install an Elasticsearch service:

  1. Windows installation (via command prompt)

  2. MSI file i.e using an Elasticsearch installation widget.

MSI File Installation steps:

  1. Download the ElasticSearch 7.16.2 version (MSI) installation file.

  2. After running the MSI file, the “Locations” window will be displayed wherein the user needs to choose the installation directory among the two options shown in the screenshot below. Choose the “Use a custom installation directory” option and provide the appropriate location and then click on the “NEXT” button.
    NOTE: Selected directory location should be different from the other installed versions of the ElasticSearch.


  3. Now the “Locations Service” window will be displayed. Click on the “NEXT” button by keeping the same options selected as shown in the image below:

  4. Enter valid details for HTTP port and Transport port fields which should be unique and not same as other installed Elasticsearch versions.
    Example: If 9200 and 9300 are already configured as HTTP and Transport port respectively for the older version of Elasticsearch then while configuring the 7.16.2 version on the same machine user should use a different port for HTTP and Transport for example 9600 and 9500 for HTTP and Transport port respectively. 

  1. Then click on the “NEXT” button to proceed with the installation.

  2. After successful installation, users will be able to see the installed search services i.e ElasticSearch 7.6 and 7.16.2 in the window's services list.  Change the startup type from "Manual" to "Automatic" from service properties.

  3. Browse the localhost URL with the configured HTTP port i.e. 9200 like http://localhost:9200/ to make sure that ElasticSearch 7.16.2 is installed successfully and the same link can be configured in the web.config file of Znode API and Web Store.

Note:  

  1. While configuring the 7.16.2 version of ElasticSearch on the same system where already older versions are available make sure to configure valid values for HTTP port and Transport port and those should not be the same as other installed Elasticsearch versions. 

Windows Installation Steps (via command prompt):

  1. Download the ElasticSearch setup (ZIP file for CMD installation) for the 7.16.2 version.

  2. Unzip the downloaded set-up at the desired location.

  3. Edit the “elasticsearch-service.bat” file available in the bin folder of the “elasticsearch-7.16.2” folder and make the following changes.

    1. Enter the proper value for SERVICE_ID like elasticsearch-service-7.16.2

  4. Edit the “elasticsearch.yml” file available in the config folder of the “elasticsearch-7.16.2” folder and make the following changes:

    1. bootstrap.memory_lock: false

    2. cluster.name: elasticsearch

    3. http.port: 9200

    4. node.data: true

    5. node.ingest: true

    6. node.master: true

    7. node.max_local_storage_nodes: 1

    8. node.name: System name

    9. path.data: D:\ElasticSearch\elasticsearch-7.16.2\data

    10. path.logs: D:\ElasticSearch\elasticsearch-7.16.2\logs

    11. transport.tcp.port: 9300

    12. xpack.license.self_generated.type: basic

    13. xpack.security.enabled: false
      Note

    14. Configure valid HTTP port.

    15. Path of data folder available in the “elasticsearch-7.16.2” folder should be set as the value for path.data.

    16. Path of logs folder available in the “elasticsearch-7.16.2” folder should be set as the value for path.logs.

    17. All the above-mentioned settings will automatically get added in the elasticsearch.yml file if the installation is done.

    18. Set machine name as the value for the “node.name”.

    19. The data and logs folder path should not be the same as other installed Elasticsearch versions.    

  5. Open the command prompt in administrative mode.

  6. Follow below steps to install the Elasticsearch service:

    1. cd {path of the bin folder available in the “elasticsearch-7.16.2” folder}

      e.g.: cd D:\ElasticSearch\elasticsearch-7.16.2\bin

    2. Press enter

    3. Enter the following commands:

      1. elasticsearch-service.bat install 

        The success message will be shown.

      2. elasticsearch-service.bat start

        The success message will be shown.

  7. After successful installation, the search service can be seen in the window's services list. Change the startup type from "Manual" to "Automatic" in the service properties.


Important

The following points needs to be taken care of at the time of installation:

  1. If there are environment variables with the name “ES_HOME” and “ES_PATH_CONF” available in the     “System Variables” section then delete them.

  2. Some of the settings which are already available or can be added in the “elasticsearch.yml” file are deprecated and will be removed in the future releases of Elasticsearch, more information will be available in the “elasticsearch_deprecation.log” file, located in the “config” folder of Elasticsearch setup.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.