M / R作业提交失败并显示错误:找不到Yarn标签属性> (mapreduce.job.tags)

时间:2015-11-24 00:53:30

标签: hadoop cloudera oozie cloudera-cdh

运行map / reduce作业时出现以下异常。我们通过oozie提交地图/减少工作。

  

Oozie Launcher失败,主要课程   [org.apache.oozie.action.hadoop.JavaMain],main()抛出异常,   找不到Yarn标签属性(mapreduce.job.tags)   java.lang.RuntimeException:找不到Yarn标签属性   (mapreduce.job.tags)at   org.apache.oozie.action.hadoop.LauncherMainHadoopUtils.getChildYarnJobs(LauncherMainHadoopUtils.java:53)     在   org.apache.oozie.action.hadoop.LauncherMainHadoopUtils.killChildYarnJobs(LauncherMainHadoopUtils.java:88)     在org.apache.oozie.action.hadoop.JavaMain.run(JavaMain.java:46)at   org.apache.oozie.action.hadoop.LauncherMain.run(LauncherMain.java:46)     在org.apache.oozie.action.hadoop.JavaMain.main(JavaMain.java:38)at   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)     在   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:606)at   org.apache.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:228)     在org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:54)at   org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:453)at at   org.apache.hadoop.mapred.MapTask.run(MapTask.java:343)at at   org.apache.hadoop.mapred.LocalContainerLauncher $ EventHandler.runSubtask(LocalContainerLauncher.java:378)     在   org.apache.hadoop.mapred.LocalContainerLauncher $ EventHandler.runTask(LocalContainerLauncher.java:296)     在   org.apache.hadoop.mapred.LocalContainerLauncher $ EventHandler.access $ 200(LocalContainerLauncher.java:181)     在   org.apache.hadoop.mapred.LocalContainerLauncher $事件处理$ 1.run(LocalContainerLauncher.java:224)     在   java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:471)     在java.util.concurrent.FutureTask.run(FutureTask.java:262)at   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)     在   java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:615)     在java.lang.Thread.run(Thread.java:745

我进行了谷歌搜索,发现以下SO帖子:Hadoop MapReduce job starts but can not find Map class?但是这篇文章中提到的解决方案对我不起作用,我在日志文件中看不到任何与文件权限相关的错误。

我们正在使用Cloudera发行版。

1 个答案:

答案 0 :(得分:1)

您需要升级Oozie sharelibs。按照说明in Cloudera's documentation。即:

Typeface font = Typeface.createFromAsset(getAssets(), "fonts/terminal.ttf");

不要忘记之后重启Oozie。这有助于我们在CDH 5.5升级后解决这个特殊问题。