Community Articles

Find and share helpful community-sourced technical articles.
Announcements
Now Live: Explore expert insights and technical deep dives on the new Cloudera Community BlogsRead the Announcement
Labels (1)
avatar
Master Guru

SYMPTOM

Running java action via Oozie workflow fails with below error:

Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.JavaMain], main() threw exception, Could not find Yarn tags property (mapreduce.job.tags) 
java.lang.RuntimeException: Could not find Yarn tags property (mapreduce.job.tags) 
at org.apache.oozie.action.hadoop.LauncherMainHadoopUtils.getChildYarnJobs(LauncherMainHadoopUtils.java:52) 
at org.apache.oozie.action.hadoop.LauncherMainHadoopUtils.killChildYarnJobs(LauncherMainHadoopUtils.java:87) 
at org.apache.oozie.action.hadoop.JavaMain.run(JavaMain.java:44) 
at org.apache.oozie.action.hadoop.LauncherMain.run(LauncherMain.java:38) 
at org.apache.oozie.action.hadoop.JavaMain.main(JavaMain.java:36) 

.

ROOT CAUSE

Missing or Yarn related jar file conflict in Oozie sharelib.

.

RESOLUTION

Complete the following steps as oozie user in the Oozie node:

1. Recreate Oozie sharelib using below command

/usr/hdp/<hdp-version>/oozie/bin/oozie-setup.sh sharelib create -locallib /usr/hdp/<hdp-version>/oozie/oozie-sharelib.tar.gz -fs hdfs://<namenode-host>:8020 

2. Update Oozie sharelib using below command

oozie admin -oozie http://<oozie-host>:11000/oozie -sharelibupdate 

3. Restart oozie service using Ambari and resubmit the workflow.

.

Note - If you have put any custom jars in Oozie sharelib, please make sure to copy them back again after re-creating Oozie sharelib.

2,154 Views
Version history
Last update:
‎12-20-2016 02:18 PM
Updated by:
Contributors