[SOLVED] Install a plugin in a distribution started from a Gradle run task?


(Christophe Bismuth) #1

Hi,

I'm working on #34142 and I have some trouble to install the ingest-attachment plugin into a distribution started from a gradlew run task.

Plugin is said to be installed from the command line but I can't see it from the _cat API.

Is there any additional step to execute?

Thanks a lot,
Chris

$ /home/cbismuth/git/elasticsearch/distribution/build/cluster/run\ node0/elasticsearch-7.0.0-SNAPSHOT/bin/elasticsearch-plugin install file:///home/cbismuth/git/elasticsearch/plugins/ingest-attachment/build/distributions/ingest-attachment-7.0.0-SNAPSHOT.zip
-> Downloading file:///home/cbismuth/git/elasticsearch/plugins/ingest-attachment/build/distributions/ingest-attachment-7.0.0-SNAPSHOT.zip
[=================================================] 100%   
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@     WARNING: plugin requires additional permissions     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* java.lang.RuntimePermission accessClassInPackage.sun.java2d.cmm.kcms
* java.lang.RuntimePermission accessDeclaredMembers
* java.lang.RuntimePermission getClassLoader
* java.lang.reflect.ReflectPermission suppressAccessChecks
* java.security.SecurityPermission createAccessControlContext
* java.security.SecurityPermission insertProvider
* java.security.SecurityPermission putProviderProperty.BC
See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
for descriptions of what these permissions allow and the associated risks.

Continue with installation? [y/N]y
-> Installed ingest-attachment

(Christophe Bismuth) #2

Solved, I had to stop the Gradle task and run it again from the CLI with ./bin/elasticsearch.