Link Search Menu Expand Document

The Open Distro project is archived. Open Distro development has moved to OpenSearch. The Open Distro plugins will continue to work with legacy versions of Elasticsearch OSS, but we recommend upgrading to OpenSearch to take advantage of the latest features and improvements.

Debian package

Installing and running Open Distro from a Debian package is a more manual process than the Docker image. We recommend Ubuntu 16.04 or 18.04, but any Debian-based distribution that uses systemd should work.

RPM lets you install specific versions of Open Distro. You can install specific versions using Apt, but you have to manually install each dependency.

These steps assume you’re using Ubuntu 18.04.

The Open Distro Debian package release for 1.13.3 is not available due to the absence of upstream artifacts related to the build. If you are using Debian package management with a previous version of Open Distro and concerned about Apache Log4j security vulnerabilities, please see the Apache Log4j website to learn about steps you can take to mitigate those vulnerabilities.
We also recommend migrating to OpenSearch, which is protected against this and other vulnerabilities, and provides a suite of robust security features along with improved search functionality. See About the process to learn more about migrating to OpenSearch.

  1. Install Java 11:

    sudo add-apt-repository ppa:openjdk-r/ppa
    sudo apt update
    sudo apt install openjdk-11-jdk
  2. Install unzip:

    sudo apt install unzip
  3. Download and add signing keys for the repositories:

    wget -qO - | sudo apt-key add -
  4. Add the repositories:

    echo "deb stable main" | sudo tee -a   /etc/apt/sources.list.d/opendistroforelasticsearch.list
  5. Install Elasticsearch OSS:

    # x86
    sudo dpkg -i elasticsearch-oss-7.10.2-amd64.deb
    # ARM64
    sudo dpkg -i elasticsearch-oss-7.10.2-arm64.deb
  6. Install the latest version of Open Distro:

    sudo apt-get update
    sudo apt install opendistroforelasticsearch

    If you don’t want the latest version or encounter dependency errors, install the plugins individually:

    # List all available versions of a plugin
    sudo apt list -a opendistro-alerting
    # Install a specific version of a plugin
    sudo apt install opendistro-alerting=
    sudo apt install opendistro-performance-analyzer=
    sudo apt install opendistro-job-scheduler=
    sudo apt install opendistro-security=
    sudo apt install opendistro-sql=

    For compatibility by Elasticsearch version, see Plugin compatibility.

  7. To start Open Distro:

    sudo systemctl start elasticsearch.service
  8. Send requests to the server to verify that Elasticsearch is up and running:

    curl -XGET https://localhost:9200 -u 'admin:admin' --insecure
    curl -XGET https://localhost:9200/_cat/nodes?v -u 'admin:admin' --insecure
    curl -XGET https://localhost:9200/_cat/plugins?v -u 'admin:admin' --insecure
  9. For instructions on installing and running Kibana, see Kibana.

  10. To check the status of the service:

    systemctl status elasticsearch.service
  11. To stop Open Distro:

    sudo systemctl stop elasticsearch.service


To run Open Distro when the system starts:

sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable elasticsearch.service

You can also modify the values in /etc/default/elasticsearch (JAVA_HOME, most notably), /etc/elasticsearch/elasticsearch.yml, and /etc/elasticsearch/jvm.options (to set the heap size, most notably). To learn more, see Elasticsearch configuration and Important Settings on the Docker page.

(Optional) Set up Performance Analyzer

By default, Performance Analyzer’s endpoints are not accessible from outside the host machine.

To edit this behavior, modify the plugin configuration. First navigate to ES_HOME, which is /usr/share/elasticsearch for a standard installation.

cd $ES_HOME # navigate to the Elasticsearch home directory
cd plugins/opendistro_performance_analyzer/pa_config/

Uncomment the line #webservice-bind-host and set it to

# ======================== Elasticsearch performance analyzer plugin config =========================

# NOTE: this is an example for Linux. Please modify the config accordingly if you are using it under other OS.

# WebService bind host; default to all interfaces
webservice-bind-host =

# Metrics data location
metrics-location = /dev/shm/performanceanalyzer/

# Metrics deletion interval (minutes) for metrics data.
# Interval should be between 1 to 60.
metrics-deletion-interval = 1

# If set to true, the system cleans up the files behind it. So at any point, we should expect only 2
# metrics-db-file-prefix-path files. If set to false, no files are cleaned up. This can be useful, if you are archiving
# the files and wouldn't like for them to be cleaned up.
cleanup-metrics-db-files = true

# WebService exposed by App's port
webservice-listener-port = 9600

# Metric DB File Prefix Path location
metrics-db-file-prefix-path = /tmp/metricsdb_

https-enabled = false

#Setup the correct path for certificates
certificate-file-path = specify_path

private-key-file-path = specify_path

# Plugin Stats Metadata file name, expected to be in the same location
plugin-stats-metadata = plugin-stats-metadata

# Agent Stats Metadata file name, expected to be in the same location
agent-stats-metadata = agent-stats-metadata

Finally, restart the Elasticsearch service. After the restart, Performance Analyzer is accessible from outside the machine:

sudo systemctl restart elasticsearch.service

Where are the files?

The Debian package installs files to the following locations:

File type Location
Elasticsearch home, management scripts, and plugins /usr/share/elasticsearch/
Configuration files /etc/elasticsearch
Environment variables /etc/default/elasticsearch
Logs /var/log/elasticsearch
Shard data /var/lib/elasticsearch

Notes on Debian

If you are using Debian 10 (Buster) rather than Ubuntu, skip the sudo add-apt-repository ppa:openjdk-r/ppa step. The openjdk-11-jdk package is available by default for Buster.

If you are using Debian 9 (Strech), you likely need to make some modifications to the install process.

  1. When installing Java 11, rather than sudo add-apt-repository ppa:openjdk-r/ppa, run:

    sudo echo 'deb stretch-backports main' > /etc/apt/sources.list.d/backports.list
  2. Before installing Open Distro, run:

    apt install apt-transport-https