[ 
https://issues.apache.org/jira/browse/OOZIE-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rohini Palaniswamy resolved OOZIE-1723.
---------------------------------------
    Resolution: Not A Problem

https://cwiki.apache.org/confluence/display/OOZIE/Map+Reduce+Cookbook

To run MapReduce jobs written using the new API in Oozie, below are the changes 
you need to make in workflow.xml.

#   change mapred.mapper.class to mapreduce.map.class
#   change mapred.reducer.class to mapreduce.reduce.class
#    add mapred.output.key.class
#    add mapred.output.value.class
#    and, include the following property into MR action configuration
{code}
    <property>
        <name>mapred.reducer.new-api</name>
        <value>true</value>
      </property>
      <property>
        <name>mapred.mapper.new-api</name>
        <value>true</value>
    </property>
{code}

> Setting 'use.new.api=true' gives compatibility error even with using new 
> 'mapreduce.*' hadoop api
> -------------------------------------------------------------------------------------------------
>
>                 Key: OOZIE-1723
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1723
>             Project: Oozie
>          Issue Type: Bug
>    Affects Versions: trunk, 4.0.0
>            Reporter: Mona Chitnis
>              Labels: api
>
> Error encountered - JA009: mapred.mapper.class is incompatible with new map 
> API mode.
> complete stack trace:
> {code}
> org.apache.oozie.action.ActionExecutorException: JA009: mapred.mapper.class 
> is incompatible with new map API mode.
>       at 
> org.apache.oozie.action.ActionExecutor.convertExceptionHelper(ActionExecutor.java:412)
>       at 
> org.apache.oozie.action.ActionExecutor.convertException(ActionExecutor.java:396)
>       at 
> org.apache.oozie.action.hadoop.JavaActionExecutor.submitLauncher(JavaActionExecutor.java:871)
>       at 
> org.apache.oozie.action.hadoop.JavaActionExecutor.start(JavaActionExecutor.java:1025)
>       at 
> org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:217)
>       at 
> org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:62)
>       at org.apache.oozie.command.XCommand.call(XCommand.java:280)
>       at 
> org.apache.oozie.service.CallableQueueService$CompositeCallable.call(CallableQueueService.java:326)
>       at 
> org.apache.oozie.service.CallableQueueService$CompositeCallable.call(CallableQueueService.java:255)
>       at 
> org.apache.oozie.service.CallableQueueService$CallableWrapper.run(CallableQueueService.java:175)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>       at java.lang.Thread.run(Thread.java:722)
> Caused by: java.io.IOException: mapred.mapper.class is incompatible with new 
> map API mode.
>       at org.apache.hadoop.mapreduce.Job.ensureNotSet(Job.java:1122)
>       at org.apache.hadoop.mapreduce.Job.setUseNewAPI(Job.java:1149)
>       at org.apache.hadoop.mapreduce.Job.submit(Job.java:1211)
>       at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:573)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to