Build and Run the Open Distro For Elasticsearch SQL Plugin with Elasticsearch OSS
Open Distro for Elasticsearch comprises four plugins:
- Security — supports node-to-node encryption, five types of authentication, role-based access controls, audit logging, and cross-cluster search.
- Alerting — notifies you when data from one or more Elasticsearch indices meets certain conditions.
- Performance — This is a REST API that allows you to query a long list of performance metrics for your cluster.
- SQL Support — This feature allows you to query your cluster using SQL statements.
The RPM and Docker container releases are binary. If you want to develop against our code base or install our plugins against your own Elasticsearch binary, you need to download the source and build from there. We will explain how to do that over several posts. In this one, we start with the SQL plugin. Other plugins have different codebases and compilation methods. Stay tuned!
Download and Install Elasticsearch
To test out installing and running Open Distro for Elasticsearch’s SQL plugin with Elasticsearch OSS, I first spun up an EC2 instance, running the Amazon Linux 2 AMI (ID: ami-095cd038eef3e5074). To install Elasticsearch and build the plugin, you need to install the development version of JDK 11. I chose Amazon Corretto. You can find the latest versions on the Downloads for Amazon Corretto 11 page. I also made sure to point JAVA_HOME at the installation: