Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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.