I am trying to create a new ActionPlugin. On ES starting, I want to create a NodeClient and do some work with it. How can I do that?
Do you really want to do that when your node is starting, or when it has joined a cluster and the node is ready to serve requests? There are some listeners that sound like a better way.
The Plugin.createComponents
method passes a Client
that you can use, there is no need to create your own.
I need to do that when it has joined a cluster and the node is ready to serve requests.
can you provide some links to the listeners use, and the Plugin.createComponents
?
Thanks
The example plugins are a good place to start. See elasticsearch/plugins/examples at 7.14 · elastic/elasticsearch · GitHub
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.