YahooArchive / oozie

Oozie - workflow engine for Hadoop
http://yahoo.github.com/oozie/
Apache License 2.0
373 stars 160 forks source link

Using EL function in job.properties #840

Open chaosmail opened 8 years ago

chaosmail commented 8 years ago

Hi guys,

I wrote a custom EL function to load ENV variables getEnv, put it into the oozie/libext directory and packaged the Oozie WAR. Then I added the function as oozie.service.ELService.ext.functions.workflow key to the oozie-site configuration and restarted Oozie - everything fine so far.

However, when I now try to use the function in a properties file of a workflow, I get an error message Error: E0902 : E0902: Exception occured: [Incomplete HDFS URI, no host: hdfs://$%7BgetEnv('NAMENODE')%7D/user/$%7Buser.name%7D/hive_test/oozie].

Can anybody give me a hint what I am doing wrong or why this is not working as expected?

Best, Christoph