Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to Set JAVA System Properties in OOZIE JAVA ACtion

Solved Go to solution

How to Set JAVA System Properties in OOZIE JAVA ACtion

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

Accepted Solutions

Re: How to Set JAVA System Properties in OOZIE JAVA ACtion

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>

3 REPLIES 3

Re: How to Set JAVA System Properties in OOZIE JAVA ACtion

Contributor

Re: How to Set JAVA System Properties in OOZIE JAVA ACtion

Super Guru

@avoma oozie-861 has been closed in 3.3.0.

Re: How to Set JAVA System Properties in OOZIE JAVA ACtion

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>