Hi Dipesh,

seems like a bad idea to programmatically change job-tracker or
name-node properties
- it's just not the task of Oozie to determine what are the exact JT or NN
instances Oozie should use.

Instead, I'd rather setup a load balancer for JT and another one for NN,
and provide those addresses to Oozie's job.properties. That way, we
separate concerns - the load balancer can choose the JT or NN node runtime,
e.g. on a round robin basis.

Regards,

Andras

--
Andras PIROS
Software Engineer
<http://www.cloudera.com/>

On Thu, Dec 1, 2016 at 9:29 PM, mdk-swandha <[email protected]>
wrote:

> Hi,
>
> I have a use case like this - in a multi cluster (hadoop cluster)
> environment if I would like to send a job/oozie workflow to a desired
> cluster during runtime, how can this be done.
>
> I see that there is JavaActionExecutor class which read NN and JobTracker
> in createBaseHadoopConf method
>
> All HadoopActionExectors are derived from JavaActionExecutor so this seems
> to be a place wherein I can insert my code. How can I do this without
> disrupting the original flow by adding my hook.
>
> One option is to to derive my new JavaActionExecutor and over ride
> createBaseHadoopConf method and then derive all ActionExecutors from my new
> JavaActionExecutor. It doesn't seem to be elegant to me, so thought to ask
> out here.
>
> Any input will be useful.
>
> Thanks.
> -Dipesh
>

Reply via email to