Elasticsearch 9.x Upgrade (Linux)

This article outlines the steps to upgrade Elasticsearch to version 9 in a Linux environment. The process includes verifying the current installation, removing the existing version, and installing the updated version using automated scripts. Following these steps ensures a consistent and controlled upgrade process.

Prerequisites

  • Ensure the Java upgrade process on the Linux machine is completed.

  • Confirm access to the server with the required permissions to execute shell scripts.

  • Ensure network access to download scripts from the provided URLs.

  • Verify that Elasticsearch credentials are available for post-installation validation.

Steps Involved

Verify Existing Elasticsearch Version

  • Run the following command to check the currently installed Elasticsearch version:

    curl -XGET -u elastic:0valEdge! http://localhost:9200 
  • Review the response to confirm the existing version. Sample Reference Screenshot:

Uninstall Existing Elasticsearch

  • Download and execute the uninstall script:

    Sample Reference Screenshot:

  • Ensure the script completes successfully before proceeding.

Install Elasticsearch Version 9

  • Download and execute the installation script:

    Sample Reference Screenshot:

  • Wait for the installation process to complete.

Validate Elasticsearch Installation

  • Run the following command to verify the upgraded version:

  • Confirm that the response reflects Elasticsearch version 9.


Copyright © 2026, OvalEdge LLC, Peachtree Corners, GA, USA.

Last updated

Was this helpful?