Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use wf:conf('user.name') instead of userName - general framework for wf:functions #135

Closed
potiuk opened this issue May 4, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@potiuk
Copy link
Collaborator

potiuk commented May 4, 2019

We are currently using userName instead of user.name in example workflows. The user.name is used already in job.properties, and we are using userName mapping because ${user.name} is not working when workflow.xml is processed by Oozie (. in the variable name).

This can be probably replaced (and mapping removed from job.properties) with using $wf:conf('user.name') instead. From the Oozie book's TIP:

The preferred syntax for Oozie variables is ${VAR}. But this only works for variable names that follow Java naming conventions. There is another way to specify these variables and that’s by using the {wf:conf('VAR')} function. If a variable name has spaces or dots, wf:conf() is the way to go. Some users prefer this because it’s consistent with the syntax for EL functions while most users like the ${VAR} syntax because it’s simpler and also helps differentiate between variables and functions.

@potiuk potiuk added the enhancement New feature or request label May 4, 2019
@potiuk potiuk self-assigned this May 7, 2019
@potiuk potiuk changed the title Use user.name configuration property instead of userName in example workflows Use wf:conf('user.name') instead of userName - general framework for wf:functions May 13, 2019
@potiuk potiuk closed this as completed May 16, 2019
@potiuk potiuk added this to the Week 1 milestone May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant