Support Questions

Find answers, ask questions, and share your expertise

How can I pass "-D" arguments to Oozie java actions?

avatar
Rising Star

For example, "-Dlog4j.debug" or "-Dlog4j.configuration='foo'

1 ACCEPTED SOLUTION

avatar
Rising Star

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.

View solution in original post

2 REPLIES 2

avatar
Guru

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.

avatar
Rising Star

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.