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.
@Override
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?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.