Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Immutable vs mutable parameters in Oozie 4.2.0

Highlighted

Immutable vs mutable parameters in Oozie 4.2.0

New Contributor

Hi there,We've got a big Oozie pipeline, which I'm having a little difficulty upgrading from Hortonworks 2.3 > 2.4 > 2.5

HDP Oozie

2.3 4.2.0.2.3.2.0-2950

2.4 4.2.0.2.4.2.0-258

2.5 4.2.0.2.5.0.0-1245

So, we ingest and process data from a range of sources, eg databases, FTP, SQL dbs etc. These are all different, but share so many common features that we have grown various heavily templated workflows. Each of our workflows has a set of parameters (eg date range, source type, hasCustomStep) all that sort of thing, all stored in "profile" workflows. We first call our "profile" workflow, which sets up the various parameters and then calls the template workflow, which then fills in the values supplied from the profile.

This has run fine for a couple of years in HDP 2.3, seems OK in 2.4, but definitely doesn't in 2.5. The problem is that once a parameter has been set in a workflow chain, then it stays set. I understand that you don't want to be changing a parameter inside the same workflow, and we've refactored so that we don't have a parameter value passed to a workflow, which then changes the parameter value then calls another sub-workflow. However, we're getting caught out by parameters being set by a workflow and then not being reset much further down the pipeline when used by a different "profile", which should be isolated but clearly isn't

Has there been a code change between the versions, and is there a config setting that allows us to switch off cross-workflow parameter immutability? thanks

Don't have an account?
Coming from Hortonworks? Activate your account here