How to Execute Custom Plugin in Data Nodes not in Master Node

The requirement is very simple to execute the Plugin in all the data nodes available.

The issue i am facing is like i install custom plugin in all the N nodes but it is always executing in the master node only. I mean to say it is not executing in distributed system and i want the request/query should execute in distributed manner always.

Please help me on this ASAP.

Could you please describe what your plugin does? What plugin interfaces is it extending?

"extends Plugin implements ActionPlugin"

public List getRestHandlers(Settings settings, RestController restController,
ClusterSettings clusterSettings, IndexScopedSettings indexScopedSettings, SettingsFilter settingsFilter,
IndexNameExpressionResolver indexNameExpressionResolver, Supplier nodesInCluster)

using the above method as Override.

Aim to create custom plugin is to create query and execute and change the response into the required json format and send back to the server.

"extends BaseRestHandler" extending baseRestHandler in the main class where the rest request is coming.

If you need more info please tell me. And let me know what mistake i am doing and what changes i can do to achieve the distributed manner query execution in all the data nodes. And also how can i test it.

More info would help. Do you have actual sample code? What does the implementation of your rest handler look like? Rest handlers should run on the node that receives the rest request. What leads you to believe your requests are only being run on master nodes? Are you sure you aren't only sending the requests to master nodes?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.