Description
CriticalPathAnalyzer is mainly used as a standalone tool (via yarn jar command). However, it should be possible to integrate this with tools like zeppelin where in this can be accessed in spark context. For e.g
var config = new Configuration() config.set("tez.critical-path-analyzer.svg-dir", "/tmp/html/analyzer/criticalPath/") config.set("tez.critical-path-analyzer.draw-svg", "true") var criticalPathAnalyzer = new CriticalPathAnalyzer(config) criticalPathAnalyzer.analyze(dagInfo) var cpResult = criticalPathAnalyzer.getResult