Hi Team, i am trying to code change in pinot. i am...
# general
v
Hi Team, i am trying to code change in pinot. i am implementing something after minion-task executes. is there any override method for taskexecute? @Xiang Fu @Tim Santos @saurabh dubey @Xiaobing @Mark Needham
please follow this
v
Thanks for your response. i've tried to add
MinionEventObserver
file but i am not able to register it. can you please help me to register?
x
you need to change code to register it
v
you mean i need to add annotation tag?
x
yes
follow the doc:
Copy code
Plug-in Custom Tasks
To plug in a custom task, implement PinotTaskGenerator, PinotTaskExecutorFactory and MinionEventObserverFactory (optional) for the task type (all of them should return the same string for getTaskType()), and annotate them with the following annotations:

After annotating the classes, put them under the package of name org.apache.pinot.*.plugin.minion.tasks.*, then they will be auto-registered by the controller and minion.
Example
See SimpleMinionClusterIntegrationTest where the TestTask is plugged-in.
v
yeah, i've implemented these three task and its working perfectly but there is no tag for
MinionEventObserver
tag is MinionEventObserverFactory
v
thats for factory which i've already mention in factory file
there are two interface
Copy code
MinionEventObserverFactory and MinionEventObserver
got a solution for this: tag is not there for
MinionEventObserver
we have to create a object in
MinionEventObserverFactory
to create observer.
x
Yes