I'm using an Oozie bundle to manage two coordinators (for now). They are the same process, but for two different clients. I have the client names defined in the bundle.properties file that I call when I launch the bundle.xml. I'm trying to use the client name to name each of the coordinators, but I keep seeing variations of the following error:
Error: E0701 : E0701: XML schema error, cvc-pattern-valid: Value 'Daily_job_#{client1}' is not facet-valid with respect to pattern '(a-zA-Z*){1,39}' for type 'IDENTIFIER'
I have been playing around with using ${} to access the variable name vs #{} based on this post here: Renaming Oozie coordinator dynamically. I seem to be able to access the variables as properties just fine from the bundle.properties just not in the name.
Here is what I've tried in the bundle.xml:
<coordinator name='Daily_job_#{client1}' >
...
<property>
<name>client</name>
<value>${client1}</value>
</property>
</coordinator>
and
<coordinator name='Daily_job_${client1}' >
...
</coordinator>
In the bundle.properties:
client1=firstclientname
client2=secondclientname
I'm able to access the value of client within the property in the coordinator and workflow but I can't seem to name the coordinator based on the property. Can anyone help me? Thank you!