RPM

    RPM supports CentOS 7 and 8, and Amazon Linux 2. If you have your own Java installation and set in your terminal application, macOS works, as well.

    There are two methods for installing OpenSearch on RPM:

    1. Download the RPM package directly from the OpenSearch downloads page. The RPM package can be download both as x64 and arm64.

    2. Import the public GPG key. This key verifies that the your OpenSearch instance is signed.

    3. On your host, use sudo yum install or sudo rpm -ivh to install the package.

      x64

      1. sudo yum install opensearch-2.0.0-linux-x64.rpm
      2. sudo yum install opensearch-dashboards-2.0.0-linux-x64.rpm
      1. sudo rpm -ivh opensearch-dashboards-2.0.0-linux-x64.rpm

      arm64

      1. sudo yum install opensearch-2.0.0-linux-x64.rpm
      2. sudo yum install opensearch-dashboards-2.0.0-linux-arm64.rpm
      1. sudo rpm -ivh opensearch-dashboards-2.0.0-linux-arm64.rpm

      Once complete, you can run OpenSearch inside your distribution.

    1. Create a repository file for both OpenSearch and OpenSearch Dashboards:

      1. sudo curl -SL https://artifacts.opensearch.org/releases/bundle/opensearch-dashboards/2.x/opensearch-dashboards-2.x.repo -o /etc/yum.repos.d/2.x.repo

      To verify that the repos appear in your repo list, use sudo yum repolist.

    2. Clean your YUM cache, to ensure a smooth installation:

      1. sudo yum clean all
    3. With the repository file downloaded, list all available versions of OpenSearch:

      1. sudo yum list | grep opensearch
    4. Choose the version of OpenSearch you want to install:

      1. sudo yum install opensearch-dashboards

      Unless otherwise indicated, the highest minor version of OpenSearch installs.

      To install a specific version of OpenSearch:

    5. During installation, the installer stops to see if the GPG key matches the OpenSearch project. Verify that the Fingerprint matches the following:

      1. Fingerprint: c5b7 4989 65ef d1c2 924b a9d5 39d3 1987 9310 d3fc

      Once complete, you can run OpenSearch inside your distribution.

    1. Run OpenSearch and OpenSearch Dashboards using systemctl.

      1. sudo systemctl start opensearch.service
      2. sudo systemctl start opensearch-dashboards.service
    2. Send requests to the server to verify that OpenSearch is running:

      1. curl -XGET https://localhost:9200 -u 'admin:admin' --insecure
      2. curl -XGET https://localhost:9200/_cat/config?v -u 'admin:admin' --insecure
    3. To stop running OpenSearch, enter:

      1. sudo systemctl stop opensearch.service
      2. sudo systemctl stop opensearch-dashboards.service

    When enabled, the Performance Analyzer plugin collects data related to the performance of your OpenSearch instance. To start the Performance Analyzer plugin, enter:

    To stop the Performance Analyzer, enter:

      You can upgrade your RPM OpenSearch instance both manually and through YUM.

      Download the new version of OpenSearch you want to use, and then use rpm -Uvh to upgrade.

      YUM