首页 > 编程语言 >java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.

java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.

时间:2022-10-12 13:57:11浏览次数:86  
标签:lang java RuntimeException hadoop MRAppMaster oozie apache org

oozie报错:

java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.oozie.action.hadoop.OozieLauncherOutputCommitter not found
	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2227)
	at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$1.call(MRAppMaster.java:481)
	at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$1.call(MRAppMaster.java:458)
	at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.callWithJobClassLoader(MRAppMaster.java:1560)
	at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.createOutputCommitter(MRAppMaster.java:458)
	at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.serviceInit(MRAppMaster.java:377)
	at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
	at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$4.run(MRAppMaster.java:1518)
	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:1657)
	at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.initAndStartAppMaster(MRAppMaster.java:1515)
	at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.main(MRAppMaster.java:1448)
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.oozie.action.hadoop.OozieLauncherOutputCommitter not found
	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2195)
	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2219)
	... 12 more
Caused by: java.lang.ClassNotFoundException: Class org.apache.oozie.action.hadoop.OozieLauncherOutputCommitter not found
	at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2101)
	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2193)

  

检查步骤:

1、执行命令

oozie admin -oozie http://{oozie-host}:11000/oozie -shareliblist

  查看oozie是否正常返回以下列表:

hive
distcp
mapreduce-streaming
spark
oozie
hcatalog
hive2
sqoop
pig

  

2、如果没有返回以下列表需进行Create the share lib

找到share相关目录进行打包压缩(命令示例:tar zcf share.tar.gz share),并执行一下命令生成hdfs相应目录及文件

./bin/oozie-setup.sh sharelib create -fs hdfs://hadoop01:8020 -locallib share.tar.gz

  

3、然后执行以下命令更新Update Sharelib,即可看到以上列表;

oozie admin -oozie http://{oozie-host}:11000/oozie -sharelibupdate

  

参考:

https://community.cloudera.com/t5/Support-Questions/Oozie-jobs-are-failing-with-class-not-found-error/td-p/175150

oozie的sharelib没有正确放到hadoop中,导致异常/user/oozie/share/lib does not exist

标签:lang,java,RuntimeException,hadoop,MRAppMaster,oozie,apache,org
From: https://www.cnblogs.com/-courage/p/16784277.html

相关文章

  • Java新浪微博客户端开发第四、五步
    0、Main:主函数入口;1、MainDialog:主界面;2、WeiboPanel:StatusPanel及CommentPanel的父类;3、StatusPanel:所有有关“微博”的父类......AD: 这一步是对之前进行较大的改动。......
  • java 根据 lambda 解析出原数据
    /***解析lambda表达式,该方法只是调用了{@linkSerializedLambda#resolve(SFunction)}中的方法,在此基础上加了缓存。*该缓存可能会在任意不定的时......
  • java--面向对象
    面向==对象==OO:OritenedObjectOOP:使用oo的思想进行开发。利用对象实现功能。  面向对象编程。1.封装2.继承3.多态   面向过程c vs 面向对象......
  • Java Heap
    堆堆是一种基于树的数据结构,是一种完全二叉树,堆中的所有的节点都按照特定的顺序排列。在堆数据结构中,如果任意父节点的值都大于其子节点,则会产生一个大顶堆;反之,如果任......
  • Java代码如何编写世界上最漂亮的null判断代码呢?
    转自:​​http://www.java265.com/JavaJingYan/202205/16524508473361.html​​null:  空对象,通常指一个引用对象没有在堆上产生,没有指向任何东西,  此时它就是一个nu......
  • java函数式编程
    importcom.alibaba.fastjson.JSON;importcom.ctrip.car.osd.util.LogHelper;importorg.apache.commons.collections.CollectionUtils;importjava.util.ArrayList;......
  • JAVA反射Runtime类研究
    Runtime类在java中一般类的调用方法是new类();所以我们使用newRuntime()来实例化一个Runtime类的对象importjava.io.IOException;publicclassmain{public......
  • 关于Java中length、length()、size()的区别
    以前总是觉得自己好像会了,但是某天忽然面对这个笔试题还是会恍惚一下,混淆和答错的几率也很大,不知道有没有其他人像我一样的。所以今天把这个问题记一下,希望印象更深刻。......
  • WebAssembly01--在JavaScript中读写C/C++内存
    编译选项emccmem.cc-omem.jsmem.cc#include"util.h"intg_int=42;doubleg_double=3.1415926;EM_PORT_API(int*)get_int_ptr(){return&g_int;}EM_PO......
  • java 实现接口频次限制
    1、添加依赖<dependency><groupId>net.jodah</groupId><artifactId>expiringmap</artifactId><version>0.5.10</versio......