In the DAGAppMaster ServiceInit() method, If user runs in session mode. DAGAM will load localResource into sessionResources. Here are the code
if (isSession) { FileInputStream sessionResourcesStream = null; try { sessionResourcesStream = new FileInputStream( TezConfiguration.TEZ_SESSION_LOCAL_RESOURCES_PB_FILE_NAME); PlanLocalResourcesProto localResourcesProto = PlanLocalResourcesProto.parseFrom(sessionResourcesStream); sessionResources.putAll(DagTypeConverters.convertFromPlanLocalResources( localResourcesProto)); } finally { if (sessionResourcesStream != null) { sessionResourcesStream.close(); } } } However, TezConfiguration.TEZ_SESSION_LOCAL_RESOURCES_PB_FILE_NAME is just a string. It must specify the relative path. Anyone know where can I get the absolute path? Regards! Chen