gpt4 book ai didi

hadoop - Oozie Reduce Join不起作用

转载 作者:行者123 更新时间:2023-12-02 21:26:10 25 4
gpt4 key购买 nike

我安装了OOZIE并可以运行它,但是OOZIE和我的项目遇到了另一个问题:
Java代码可以正常工作,但是当我尝试在Oozie中实现此功能时,它将不再起作用。我在Oozie中的 map 相位输出规范有问题,但我不知道是什么。

我的jar文件(名称为wordcount1.jar)包括:
--JoinMapper $ MovieMapper
--JoinMapper $ FigureMapper
--JoinReducer

这是我的错误日志:
2016-03-09 01:24:30,441信息CallbackServlet:539-用户[-]组[-] token [-] APP [-]作业[0000017-160308222246102-oozie-oozi-W]操作[0000017-160308222246102-oozie -oozi-W @ wordcount1]回调以执行操作[0000017-160308222246102-oozie-oozi-W @ wordcount1]
2016-03-09 01:24:30,812信息MapReduceActionExecutor:539-USER [training] GROUP [-] TOKEN [] APP [example-workflow] JOB [0000017-160308222246102-oozie-oozi-W] ACTION [0000017-160308222246102- oozie-oozi-W @ wordcount1]操作已完成,外部ID [job_201603082221_0037]
2016-03-09 01:24:30,912 WARN MapReduceActionExecutor:542-USER [training] GROUP [-] TOKEN [] APP [example-workflow] JOB [0000017-160308222246102-oozie-oozi-W] ACTION [0000017-160308222246102- oozie-oozi-W @ wordcount1]启动器错误,原因:主类[org.apache.oozie.action.hadoop.MapReduceMain],main()抛出异常,null
2016-03-09 01:24:31,120信息ActionEndXCommand:539-USER [training] GROUP [-] TOKEN [] APP [example-workflow] JOB [0000017-160308222246102-oozie-oozi-W] ACTION [0000017-160308222246102- oozie-oozi-W @ wordcount1]错误被认为是SLA失败
2016-03-09 01:24:31,250信息ActionStartXCommand:539-USER [training] GROUP [-] TOKEN [] APP [example-workflow] JOB [0000017-160308222246102-oozie-oozi-W] ..

我有以下job.properties文件:

nameNode=hdfs://localhost:8020
jobTracker=localhost:8021
queueName=default
examplesRoot=joinoozie
oozie.use.system.libpath=true
oozie.wf.application.path=${nameNode}/user/training/${examplesRoot}
inputDir1=movies1
inputDir2=figures1

我的workflow.xml文件如下:
<workflow-app name="example-workflow" xmlns="uri:oozie:workflow:0.4">
<start to="wordcount1" />
<!-- WordCount MapReduce job -->
<action name="wordcount1">
<map-reduce>
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<prepare>

</prepare>
<configuration>
<property>
<name>mapred.mapper.new-api</name>
<value>true</value>
</property>
<property>
<name>mapred.reducer.new-api</name>
<value>true</value>
</property>

<property>
<name>mapred.job.queue.name</name>
<value>${queueName}</value>
</property>

<property>
<name>mapreduce.inputformat.class</name> <value>org.apache.hadoop.mapreduce.lib.input.DelegatingInputFormat</value>
</property>
<property>
<name>mapreduce.map.class</name> <value>org.apache.hadoop.mapreduce.lib.input.DelegatingMapper</value>
</property>
<property>
<name>mapreduce.input.multipleinputs.dir.formats</name> <value>${inputDir1};org.apache.hadoop.mapred.TextInputFormat,${inputDir2};org.apache.hadoop.mapred.TextInputFormat</value>
</property>

<property>
<name>mapreduce.input.multipleinputs.dir.mappers</name> <value>${inputDir1};JoinMapper$MovieMapper,${inputDir2};JoinMapper$FigureMapper</value>
</property>

<property>
<name>mapreduce.reduce.class</name>
<value>JoinReducer</value>
</property>

<property>
<name>mapred.output.dir</name>
<value>output_oozie</value>
</property>
</configuration>
</map-reduce>

<ok to="end" />
<error to='end'/>
</action>
<end name="end" />
</workflow-app>
有人可以帮我解决这个问题吗?会很好..
谢谢,
和我

最佳答案

Oozie提供了对应于工作流中不同操作类型的默认属性集。您可以阅读更多关于位置和属性设置顺序的信息here

关于hadoop - Oozie Reduce Join不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35878616/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com