- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How can I pass "-D" arguments to Oozie java actions?
- Labels:
-
Apache Oozie
Created ‎12-15-2015 08:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For example, "-Dlog4j.debug" or "-Dlog4j.configuration='foo'
Created ‎12-16-2015 10:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, @rich. Turns out what I was after was the well documented <java-opt> tag when defining the java action. I apparently missed it the first few times I looked at the oozie specification.
Created ‎12-16-2015 02:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can set properties using -D, but you need a space. For example:
oozie job -D property=value -run ...
Not sure if that works for log4j properties though.
Created ‎12-16-2015 10:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, @rich. Turns out what I was after was the well documented <java-opt> tag when defining the java action. I apparently missed it the first few times I looked at the oozie specification.
