TezPlanContainerNode tezPlanNode = new TezPlanContainerNode(OperatorKey.genOpKey("DAGName"), tezPlan);
TezScriptState scriptState = new TezScriptState("test");
ScriptState.start(scriptState);
scriptState.setDAGScriptInfo(tezPlanNode);
TezJobCompiler jobComp = new TezJobCompiler(pc, new Configuration());
DAG dag = jobComp.buildDAG(tezPlanNode, new HashMap<String, LocalResource>());
return new Pair<TezOperPlan, DAG>(tezPlan, dag);
}