You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tez.apache.org by hi...@apache.org on 2013/09/17 01:50:46 UTC

git commit: TEZ-461. Fix MapProcessor to handle map only jobs. (hitesh)

Updated Branches:
  refs/heads/TEZ-398 f9713195f -> c45e30e46


TEZ-461. Fix MapProcessor to handle map only jobs. (hitesh)


Project: http://git-wip-us.apache.org/repos/asf/incubator-tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tez/commit/c45e30e4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tez/tree/c45e30e4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tez/diff/c45e30e4

Branch: refs/heads/TEZ-398
Commit: c45e30e4654c687082dce0410da03a9e15bdf5d0
Parents: f971319
Author: Hitesh Shah <hi...@apache.org>
Authored: Mon Sep 16 16:50:22 2013 -0700
Committer: Hitesh Shah <hi...@apache.org>
Committed: Mon Sep 16 16:50:22 2013 -0700

----------------------------------------------------------------------
 .../apache/tez/mapreduce/newprocessor/map/MapProcessor.java    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tez/blob/c45e30e4/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/newprocessor/map/MapProcessor.java
----------------------------------------------------------------------
diff --git a/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/newprocessor/map/MapProcessor.java b/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/newprocessor/map/MapProcessor.java
index b372536..cd9525a 100644
--- a/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/newprocessor/map/MapProcessor.java
+++ b/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/newprocessor/map/MapProcessor.java
@@ -107,12 +107,14 @@ public class MapProcessor extends MRTask implements LogicalIOProcessor {
     SimpleInputLegacy input = (SimpleInputLegacy)in;
     
     boolean doingShuffle = true;
+    KVWriter kvWriter = null;
     if (!(out instanceof OnFileSortedOutput)) {
       doingShuffle = false;
+      kvWriter = ((SimpleOutput)out).getWriter();
+    } else {
+      kvWriter = ((OnFileSortedOutput)out).getWriter();
     }
     
-    KVWriter kvWriter = ((OnFileSortedOutput)out).getWriter();
-    
     if (out instanceof SimpleOutput) {
       initCommitter(jobConf, useNewApi, false);
     } else { // Assuming no other output needs commit.