我试图在Hortonworks发行版下执行map-reduce oozie示例... 但它功能齐全......
首先,这里是我的Custom Hadoop Configs(来自Ambari)。我不得不修改核心xml以纠正我的“冒充”问题......
hadoop.proxyuser.oozie.groups=*
hadoop.proxyuser.oozie.hosts=*
运作良好,但现在我有了这个:
Error: E0803 : E0803: IO error, <openjpa-2.1.0-r422266:1071316 fatal store error>
org.apache.openjpa.persistence.RollbackException: The transaction has been rolled back.
See the nested exceptions for details on the errors that occurred. FailedObject: org.apache.oozie.WorkflowJobBean@3f623c47
我已经找到了具有相同错误但没有解决方案的人......可以帮助我了!
我的job.properties(在本地)
nameNode=hdfs://namenode01:8020
jobTracker=namenode01:8021
queueName=default
examplesRoot=examples
oozie.wf.application.path=${nameNode}/oozie/${examplesRoot}/apps/map-reduce
outputDir=map-reduce
和我的workflow.xml(在HDFS上)
<workflow-app xmlns="uri:oozie:workflow:0.2" name="map-reduce-wf">
<start to="mr-node"/>
<action name="mr-node">
<map-reduce>
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<prepare>
<delete path="${nameNode}/oozie/examples/output-data/${outputDir}"/>
</prepare>
<configuration>
<property>
<name>mapred.job.queue.name</name>
<value>${queueName}</value>
</property>
<property>
<name>mapred.mapper.class</name>
<value>org.apache.oozie.example.SampleMapper</value>
</property>
<property>
<name>mapred.reducer.class</name>
<value>org.apache.oozie.example.SampleReducer</value>
</property>
<property>
<name>mapred.map.tasks</name>
<value>1</value>
</property>
<property>
<name>mapred.input.dir</name>
<value>/oozie/examples/input-data/text</value>
</property>
<property>
<name>mapred.output.dir</name>
<value>/oozie/examples/output-data/${outputDir}</value>
</property>
</configuration>
</map-reduce>
<ok to="end"/>
<error to="fail"/>
</action>
<kill name="fail">
<message>Map/Reduce failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<end name="end"/>
</workflow-app>
我试图用以下方式执行我的wf:
oozie job -oozie http://edgenode01:11000/oozie -config /home/oozie/examples/apps/no-op/job.properties -run
非常感谢!
答案 0 :(得分:0)
在你的hadoop-host打开工作历史记录:50030 / jobhistory.jsp并找到你的工作。然后去映射任务并查看日志。
答案 1 :(得分:0)
如果您正在使用derby db - 检查db位置以查看是否有任何用户拥有的锁定文件而非预期 - 如果是,请将其删除并再次停止并启动oozie。