tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ss...@apache.org
Subject git commit: TEZ-334. Remove some redundant variables from MultiStageMRConfToTezTranslator.getStageConfs. Contributed by jiang jie.
Date Tue, 13 Aug 2013 04:26:36 GMT
Updated Branches:
  refs/heads/master e8e29bedb -> 8343da947


TEZ-334. Remove some redundant variables from
MultiStageMRConfToTezTranslator.getStageConfs. Contributed by jiang jie.


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

Branch: refs/heads/master
Commit: 8343da947fd174a21410c10e93d1def4c17813fd
Parents: e8e29be
Author: Siddharth Seth <sseth@apache.org>
Authored: Mon Aug 12 21:25:13 2013 -0700
Committer: Siddharth Seth <sseth@apache.org>
Committed: Mon Aug 12 21:25:13 2013 -0700

----------------------------------------------------------------------
 .../tez/mapreduce/hadoop/MultiStageMRConfToTezTranslator.java    | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tez/blob/8343da94/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/hadoop/MultiStageMRConfToTezTranslator.java
----------------------------------------------------------------------
diff --git a/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/hadoop/MultiStageMRConfToTezTranslator.java
b/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/hadoop/MultiStageMRConfToTezTranslator.java
index fecc5d9..2d37a1c 100644
--- a/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/hadoop/MultiStageMRConfToTezTranslator.java
+++ b/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/hadoop/MultiStageMRConfToTezTranslator.java
@@ -217,9 +217,7 @@ public class MultiStageMRConfToTezTranslator {
         .getNumIntermediateStages(conf);
     boolean hasFinalReduceStage = (conf.getInt(MRJobConfig.NUM_REDUCES, 0) > 0);
     // Assuming no 0 map jobs, and the first stage is always a map.
-    int totalStages = numIntermediateStages + (hasFinalReduceStage ? 2 : 1);
-    int numEdges = totalStages - 1;
-    int numStages = numEdges + 1;
+    int numStages = numIntermediateStages + (hasFinalReduceStage ? 2 : 1);
 
     Configuration confs[] = new Configuration[numStages];
     Configuration nonItermediateConf = MultiStageMRConfigUtil.extractStageConf(


Mime
View raw message