TEZ-3093. addendum patch (rbalamohan) (cherry picked from commit c7397f5de42bd83f2a479ca1b29ef007cc40cc25)
Project: http://git-wip-us.apache.org/repos/asf/tez/repo Commit: http://git-wip-us.apache.org/repos/asf/tez/commit/087c9428 Tree: http://git-wip-us.apache.org/repos/asf/tez/tree/087c9428 Diff: http://git-wip-us.apache.org/repos/asf/tez/diff/087c9428 Branch: refs/heads/branch-0.7 Commit: 087c942800be39064571e81c6087a6cca1d217ca Parents: 7b5e692 Author: Rajesh Balamohan <[email protected]> Authored: Thu Feb 4 19:04:28 2016 -0800 Committer: Rajesh Balamohan <[email protected]> Committed: Thu Feb 4 19:07:19 2016 -0800 ---------------------------------------------------------------------- .../org/apache/tez/analyzer/plugins/CriticalPathAnalyzer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tez/blob/087c9428/tez-tools/analyzers/job-analyzer/src/main/java/org/apache/tez/analyzer/plugins/CriticalPathAnalyzer.java ---------------------------------------------------------------------- diff --git a/tez-tools/analyzers/job-analyzer/src/main/java/org/apache/tez/analyzer/plugins/CriticalPathAnalyzer.java b/tez-tools/analyzers/job-analyzer/src/main/java/org/apache/tez/analyzer/plugins/CriticalPathAnalyzer.java index a7e37ab..88c5134 100644 --- a/tez-tools/analyzers/job-analyzer/src/main/java/org/apache/tez/analyzer/plugins/CriticalPathAnalyzer.java +++ b/tez-tools/analyzers/job-analyzer/src/main/java/org/apache/tez/analyzer/plugins/CriticalPathAnalyzer.java @@ -62,7 +62,7 @@ public class CriticalPathAnalyzer extends TezAnalyzerBase implements Analyzer { } public static final String DRAW_SVG = "tez.critical-path-analyzer.draw-svg"; - public static final String SVG_DIR = "output-dir"; + public static final String OUTPUT_DIR = "output-dir"; public static class CriticalPathStep { public enum EntityType { @@ -159,7 +159,7 @@ public class CriticalPathAnalyzer extends TezAnalyzerBase implements Analyzer { SVGUtils svg = new SVGUtils(); String outputDir = getOutputDir(); if (outputDir == null) { - outputDir = getConf().get(SVG_DIR); + outputDir = getConf().get(OUTPUT_DIR); } String outputFileName = outputDir + File.separator + dagInfo.getDagId() + ".svg"; System.out.println("Writing output to: " + outputFileName);
