Debian package

Installing and running Open Distro for Elasticsearch from an 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.

These steps assume you’re using Ubuntu 18.04.

  1. Install Java 11:

    sudo add-apt-repository ppa:openjdk-r/ppa
    sudo apt update
    sudo apt install openjdk-11-jdk
  2. Download and add signing keys for the repositories:

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

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

    sudo dpkg  -i elasticsearch-oss-6.7.1.deb
  5. Install Open Distro for Elasticsearch:

    sudo apt-get update
    sudo apt install opendistroforelasticsearch
  6. To start Open Distro for Elasticsearch:

    sudo systemctl start elasticsearch.service
  7. 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
  8. For instructions on installing and running Kibana, see Kibana.

  9. To check the status of the service:

    systemctl status elasticsearch.service
  10. To stop Open Distro for Elasticsearch:

    sudo systemctl stop elasticsearch.service


To run Open Distro for Elasticsearch 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.

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 rather than Ubuntu, 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 for Elasticsearch, run:

    apt install apt-transport-https