I'm not familiar use the use of Hooks, but looking at the documentation <https://storm.apache.org/releases/current/Hooks.html> and the Javadoc description <https://storm.apache.org/releases/current/javadocs/org/apache/storm/hooks/IWorkerHook.html>, if you wanted to define hooks in storm.yaml you would need to have the binaries of your hooks available at the Storm shared libs level, which would be a hard dependency and the hook might not make sense outside the context of a certain topology.
On Tue, 23 Jan 2024 at 17:58, Harish Madineni <harishmadine...@gmail.com> wrote: > - Any difference between adding a worker hook for a topology vs in > configuration file? If any? > One difference I'm aware of is, Worker hook runs for that topology and > worker hook runs for all the topologies/workers. > > On Tue, Jan 23, 2024 at 11:25 PM Harish Madineni < > harishmadine...@gmail.com> wrote: > >> Why can't I add worker hooks via the storm.yaml configuration file? >> Is it going to affect performance? >> Any difference between adding a worker hook for a topology vs in >> configuration file? If any? >> >> Thanks & Regards, >> Harish M. >> >