Have a problem with plugin installation 8.14.3. Gradle Build tools used for compiling the java plugin project. Expected the output while installing the plugin:
elasticsearch@9769694eb777:~$ bin/elasticsearch-plugin install file:///usr/share/elasticsearch/plugins/ingest-bkrtbhread-0.0.1.zip
-> Installing file:///usr/share/elasticsearch/plugins/ingest-bkrtbhread-0.0.1.zip
-> Downloading file:///usr/share/elasticsearch/plugins/ingest-bkrtbhread-0.0.1.zip
[=================================================] 100%??
-> Failed installing file:///usr/share/elasticsearch/plugins/ingest-bkrtbhread-0.0.1.zip
-> Rolling back file:///usr/share/elasticsearch/plugins/ingest-bkrtbhread-0.0.1.zip
-> Rolled back file:///usr/share/elasticsearch/plugins/ingest-bkrtbhread-0.0.1.zip
Exception in thread "main" java.lang.IllegalStateException: Plugin [ingest-bkrtbhread-0.0.1.zip] is missing a descriptor properties file.
at org.elasticsearch.plugins.PluginDescriptor.readFromProperties(PluginDescriptor.java:233)
at org.elasticsearch.plugins.PluginsUtils.readPluginBundle(PluginsUtils.java:255)
at org.elasticsearch.plugins.PluginsUtils.findBundles(PluginsUtils.java:236)
at org.elasticsearch.plugins.PluginsUtils.getPluginBundles(PluginsUtils.java:218)
at org.elasticsearch.plugins.PluginsUtils.preInstallJarHellCheck(PluginsUtils.java:287)
at org.elasticsearch.plugins.cli.InstallPluginAction.jarHellCheck(InstallPluginAction.java:915)
at org.elasticsearch.plugins.cli.InstallPluginAction.loadPluginInfo(InstallPluginAction.java:877)
at org.elasticsearch.plugins.cli.InstallPluginAction.installPlugin(InstallPluginAction.java:923)
at org.elasticsearch.plugins.cli.InstallPluginAction.execute(InstallPluginAction.java:254)
at org.elasticsearch.plugins.cli.InstallPluginCommand.execute(InstallPluginCommand.java:89)
at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:54)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85)
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:94)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85)
at org.elasticsearch.cli.Command.main(Command.java:50)
at org.elasticsearch.launcher.CliToolLauncher.main(CliToolLauncher.java:64)
The project was built successfully and .zip archive contains the plugin-descriptor file.
Gradle build:
import java.nio.file.Files
import org.apache.tools.ant.filters.ReplaceTokens
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath "org.elasticsearch.gradle:build-tools:8.14.3"
}
}
repositories {
mavenCentral()
}
group = 'org.elasticsearch.plugin.ingest'
version = '0.0.1'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'elasticsearch.esplugin'
esplugin {
name = 'ingest-bkrtbhread'
description = 'The Redis check for RTBH hosts'
classname = 'org.elasticsearch.plugin.ingest.baltneta.redisrtbhcheck.RTBHCheckPlugin'
licenseFile = rootProject.file('LICENSE.txt')
noticeFile = rootProject.file('NOTICE.txt')
}
dependencies {
compileOnly 'redis.clients:jedis:5.2.0'
compileOnly "org.elasticsearch:elasticsearch:$elasticsearchVersion"
}