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 to Set JAVA System Properties in OOZIE JAVA ACtion

avatar
Expert Contributor

A JVM runs with a number of system properties. You can configure system properties by using the -D option.In HDP 2.4.2 with oozie-4.2 in the workflow xml passing multiple java-opt as

<java-opts>

-Dp1=v1

-Dp2=v2

</java-opts>

but encountered with exit code 127 container getting killed because the properties were not set correctly during container execution.

But the same runs well using java program and also in previous oozie versions.

Is there any limitation in OOZIE JAVA action for system property usage?.

1 ACCEPTED SOLUTION

avatar
Expert Contributor

The problem got fixed instead of passing

<java-opts>

-Dp1=v1

-Dp2=v2

</java-opts>

we did in one-liner <java-opts>-Dp1=v1 -Dp2=v2 </java-opts>

View solution in original post

3 REPLIES 3

avatar
Master Guru

@avoma oozie-861 has been closed in 3.3.0.

avatar
Expert Contributor

The problem got fixed instead of passing

<java-opts>

-Dp1=v1

-Dp2=v2

</java-opts>

we did in one-liner <java-opts>-Dp1=v1 -Dp2=v2 </java-opts>