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:
Download the RPM package directly from the OpenSearch downloads page. The RPM package can be download both as
x64
andarm64
.Import the public GPG key. This key verifies that the your OpenSearch instance is signed.
On your host, use
sudo yum install
orsudo rpm -ivh
to install the package.x64
sudo yum install opensearch-2.0.0-linux-x64.rpm
sudo yum install opensearch-dashboards-2.0.0-linux-x64.rpm
sudo rpm -ivh opensearch-dashboards-2.0.0-linux-x64.rpm
arm64
sudo yum install opensearch-2.0.0-linux-x64.rpm
sudo yum install opensearch-dashboards-2.0.0-linux-arm64.rpm
sudo rpm -ivh opensearch-dashboards-2.0.0-linux-arm64.rpm
Once complete, you can run OpenSearch inside your distribution.
Create a repository file for both OpenSearch and OpenSearch Dashboards:
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
.Clean your YUM cache, to ensure a smooth installation:
sudo yum clean all
With the repository file downloaded, list all available versions of OpenSearch:
sudo yum list | grep opensearch
Choose the version of OpenSearch you want to install:
sudo yum install opensearch-dashboards
Unless otherwise indicated, the highest minor version of OpenSearch installs.
To install a specific version of OpenSearch:
During installation, the installer stops to see if the GPG key matches the OpenSearch project. Verify that the
Fingerprint
matches the following:Fingerprint: c5b7 4989 65ef d1c2 924b a9d5 39d3 1987 9310 d3fc
Once complete, you can run OpenSearch inside your distribution.
Run OpenSearch and OpenSearch Dashboards using
systemctl
.sudo systemctl start opensearch.service
sudo systemctl start opensearch-dashboards.service
Send requests to the server to verify that OpenSearch is running:
curl -XGET https://localhost:9200 -u 'admin:admin' --insecure
curl -XGET https://localhost:9200/_cat/config?v -u 'admin:admin' --insecure
To stop running OpenSearch, enter:
sudo systemctl stop opensearch.service
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.