oozie map reduce示例在使用bigtop 0.5.0时失败,并出现classnotfoundexception

p1tboqfb  于 2021-06-03  发布在  Hadoop
关注(0)|答案(0)|浏览(244)

我使用的是相对干净的centos6.3minimal安装,bigtop0.5.0repo和sunjava1.6。我按照这里的说明添加bigtop回购。
我已经使用yum安装了hadoop common和oozie。我通过运行sudo服务oozie init来配置oozie,然后使用bigtop0.6.0中init-hdfs.sh文件中的命令设置hdfs路径。
我可以运行java和流Map减少作业没有任何问题。我还可以运行与bigtop捆绑在一起的oozie流媒体示例。不幸的是,当我尝试运行map reduce示例时,得到了java.lang.classnotfoundexception
我可以从hdfs审计日志中看到,oozie-examples-3.3.0.jar文件被检查过,但从未打开过。以下是工作流运行时审核日志中jar文件的四个条目:

2013-03-12 14:42:07,394 INFO FSNamesystem.audit: allowed=true   ugi=user (auth:SIMPLE) via oozie (auth:SIMPLE)  ip=/192.168.56.12   cmd=getfileinfo src=/user/user/examples/apps/map-reduce/lib/oozie-examples-3.3.0.jar    dst=null    perm=null
2013-03-12 14:42:07,399 INFO FSNamesystem.audit: allowed=true   ugi=user (auth:SIMPLE) via oozie (auth:SIMPLE)  ip=/192.168.56.12   cmd=getfileinfo src=/user/user/examples/apps/map-reduce/lib/oozie-examples-3.3.0.jar    dst=null    perm=null
<snip>
2013-03-12 14:42:07,547 INFO FSNamesystem.audit: allowed=true   ugi=user (auth:SIMPLE) via oozie (auth:SIMPLE)  ip=/192.168.56.12   cmd=getfileinfo src=/user/user/examples/apps/map-reduce/lib/oozie-examples-3.3.0.jar    dst=null    perm=null
2013-03-12 14:42:07,550 INFO FSNamesystem.audit: allowed=true   ugi=user (auth:SIMPLE) via oozie (auth:SIMPLE)  ip=/192.168.56.12   cmd=getfileinfo src=/user/user/examples/apps/map-reduce/lib/oozie-examples-3.3.0.jar    dst=null    perm=null

我从端口8088上的webconsole获取的容器日志显示以下异常,但没有提供进一步的线索:

2013-03-12 15:10:18,681 FATAL [IPC Server handler 2 on 57310] org.apache.hadoop.mapred.TaskAttemptListenerImpl: Task: attempt_1363061307536_0002_m_000000_0 - exited : java.lang.RuntimeException: Error in configuring object
    at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:106)
    at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:72)
    at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:130)
    at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:396)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:335)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:157)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:396)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1367)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:152)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:103)
    ... 9 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.oozie.example.SampleMapper not found
    at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1611)
    at org.apache.hadoop.mapred.JobConf.getMapperClass(JobConf.java:979)
    at org.apache.hadoop.mapred.MapRunner.configure(MapRunner.java:38)
    ... 14 more
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.oozie.example.SampleMapper not found
    at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1579)
    at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1603)
    ... 16 more
Caused by: java.lang.ClassNotFoundException: Class org.apache.oozie.example.SampleMapper not found
    at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:1485)
    at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1577)
    ... 17 more

当工作流的失败阶段正在运行时,我设法从temp目录中获取job.xml文件,我可以看到jar文件被添加到classpath属性中:

<property><name>mapreduce.job.classpath.files</name><value>/user/user/user-oozi/0000001-130312141058075-oozie-oozi-W/mr-node--map-reduce/map-reduce-launcher.jar,/user/user/examples/apps/map-reduce/lib/oozie-examples-3.3.0.jar</value><source>programatically</source></property>

... 但显然还没有找到班级。我已经将所有调试设置为对所有组件进行调试,找不到更多的线索。
我只是误解了什么,还是这真的是一个错误?我真的不知道下一步该怎么办。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题