I am trying to add ES plugin to a Node server programmatically. For example,
Plugin is something like this https://github.com/imotov/elasticsearch-native-script-example and compiled it and I can install it with ES 2.1.0 using ./plugin binary install
Now I want to add that plugin to my code programmatically. What I did is
Compile that plugin and generate a maven artifact
in my project, add that maven artifact as dependency
in the code add
Node server = NodeBuilder.nodeBuilder().clusterName(ES_TEST_CLUSTER_NAME)
The 4th line is the new line to add the plugin. It compiles and runs.
- However, when the node starts, in the log, I did not see the plugin being installed in the plugin service, and nothing related to that plugin is shown.
My question is is this the right way to install plugin programmatically? And is there a way to verify the installation?