opendistro sql的二次开发,包括二个部门。
es的sql插件: https://github.com/opendistro-for-elasticsearch/sql
es的sql的jdbc驱动: https://github.com/opendistro-for-elasticsearch/sql-jdbc
编译插件:
git clone https://github.com/opendistro-for-elasticsearch/sql.git cd sql ./gradlew build
提示结果如下:
$ ./gradlew build Downloading https://services.gradle.org/distributions/gradle-6.2.1-all.zip .................................................................................................................................... Welcome to Gradle 6.2.1! Here are the highlights of this release: - Dependency checksum and signature verification - Shareable read-only dependency cache - Documentation links in deprecation messages For more details see https://docs.gradle.org/6.2.1/release-notes.html Starting a Gradle Daemon (subsequent builds will be faster) <-------------> 0% CONFIGURING [52s] > root project > Resolve dependencies of :classpath > build-tools-7.6.1.pom
安装插件后重启服务
测试结果
curl 'localhost:9200/_cat/plugins?v&s=component&h=name,component,version,description'