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.

Oozie error, but job is completed

Oozie error, but job is completed

New Contributor

Hello,

 

I'm using Cloudera 6.3.

I created a simple MapReduce job via Hue from hadoop examples:

When I run workflow, I see two tasks in the scheduler: MapReduce and Oozie.

MapReduce task is done without errors, but Oozie  task returns error.

Details section of job is:

default

 

Main Class [org.apache.oozie.action.hadoop.JavaMain], exit code [-1]

 

stdout:

 

Setting [spark.yarn.tags] tag: oozie-f1f1e3d341c2e770ffb4eb08659340dd
Fetching child yarn jobs
tag id : oozie-f1f1e3d341c2e770ffb4eb08659340dd
No child applications found
Java action main class        : org.apache.hadoop.examples.ExampleDriver
Java action arguments         :
             wordcount
             /user/snussi/README.txt
             /user/snussi/out.txt

java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.oozie.action.hadoop.LauncherAM.runActionMain(LauncherAM.java:410)
	at org.apache.oozie.action.hadoop.LauncherAM.access$300(LauncherAM.java:55)
	at org.apache.oozie.action.hadoop.LauncherAM$2.run(LauncherAM.java:223)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:422)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1875)
	at org.apache.oozie.action.hadoop.LauncherAM.run(LauncherAM.java:217)
	at org.apache.oozie.action.hadoop.LauncherAM$1.run(LauncherAM.java:153)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:422)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1875)
	at org.apache.oozie.action.hadoop.LauncherAM.main(LauncherAM.java:141)
Caused by: org.apache.oozie.action.hadoop.JavaMain$JavaMainException: java.lang.SecurityException: Intercepted System.exit(-1)
	at org.apache.oozie.action.hadoop.JavaMain.run(JavaMain.java:58)
	at org.apache.oozie.action.hadoop.LauncherMain.run(LauncherMain.java:104)
	at org.apache.oozie.action.hadoop.JavaMain.main(JavaMain.java:35)
	... 16 more
Caused by: java.lang.SecurityException: Intercepted System.exit(-1)
	at org.apache.oozie.action.hadoop.security.LauncherSecurityManager.checkExit(LauncherSecurityManager.java:57)
	at java.lang.Runtime.exit(Runtime.java:107)
	at java.lang.System.exit(System.java:971)
	at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:80)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.oozie.action.hadoop.JavaMain.run(JavaMain.java:55)
	... 18 more
Intercepting System.exit(-1)
Failing Oozie Launcher, Main Class [org.apache.oozie.action.hadoop.JavaMain], exit code [-1]
Oozie Launcher, uploading action data to HDFS sequence file: hdfs://head.bigdata-learn.srcc.msu.ru:8020/user/snussi/oozie-oozi/0000000-191028175957005-oozie-oozi-W/java-1f72--java/action-data.seq
Stopping AM
Callback notification attempts left 0
Callback notification trying <a href="<a href="http://utility.bigdata-learn.srcc.msu.ru:11000/oozie/callback?id=0000000-191028175957005-oozie-oozi-..." target="_blank">http://utility.bigdata-learn.srcc.msu.ru:11000/oozie/callback?id=0000000-191028175957005-oozie-oozi-...>" target="_blank"><a href="http://utility.bigdata-learn.srcc.msu.ru:11000/oozie/callback?id=0000000-191028175957005-oozie-oozi-..." target="_blank">http://utility.bigdata-learn.srcc.msu.ru:11000/oozie/callback?id=0000000-191028175957005-oozie-oozi-...>>
Callback notification to <a href="<a href="http://utility.bigdata-learn.srcc.msu.ru:11000/oozie/callback?id=0000000-191028175957005-oozie-oozi-..." target="_blank">http://utility.bigdata-learn.srcc.msu.ru:11000/oozie/callback?id=0000000-191028175957005-oozie-oozi-...>" target="_blank"><a href="http://utility.bigdata-learn.srcc.msu.ru:11000/oozie/callback?id=0000000-191028175957005-oozie-oozi-..." target="_blank">http://utility.bigdata-learn.srcc.msu.ru:11000/oozie/callback?id=0000000-191028175957005-oozie-oozi-...>> succeeded
Callback notification succeeded

 

stderr:

 

java.lang.SecurityException: Intercepted System.exit(0)
	at org.apache.oozie.action.hadoop.security.LauncherSecurityManager.checkExit(LauncherSecurityManager.java:57)
	at java.lang.Runtime.exit(Runtime.java:107)
	at java.lang.System.exit(System.java:971)
	at org.apache.hadoop.examples.WordCount.main(WordCount.java:87)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:71)
	at org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:144)
	at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:74)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.oozie.action.hadoop.JavaMain.run(JavaMain.java:55)
	at org.apache.oozie.action.hadoop.LauncherMain.run(LauncherMain.java:104)
	at org.apache.oozie.action.hadoop.JavaMain.main(JavaMain.java:35)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.oozie.action.hadoop.LauncherAM.runActionMain(LauncherAM.java:410)
	at org.apache.oozie.action.hadoop.LauncherAM.access$300(LauncherAM.java:55)
	at org.apache.oozie.action.hadoop.LauncherAM$2.run(LauncherAM.java:223)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:422)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1875)
	at org.apache.oozie.action.hadoop.LauncherAM.run(LauncherAM.java:217)
	at org.apache.oozie.action.hadoop.LauncherAM$1.run(LauncherAM.java:153)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:422)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1875)
	at org.apache.oozie.action.hadoop.LauncherAM.main(LauncherAM.java:141)

 

 

Maybe someone can help me to fix this error?

 

Don't have an account?
Coming from Hortonworks? Activate your account here