List of usage examples for org.apache.hadoop.mapreduce.v2.util MRApps getJobFile
public static String getJobFile(Configuration conf, String user, org.apache.hadoop.mapreduce.JobID jobId)
From source file:org.apache.tez.mapreduce.client.YARNRunner.java
License:Apache License
@Override public JobStatus getJobStatus(JobID jobID) throws IOException, InterruptedException { String user = UserGroupInformation.getCurrentUser().getShortUserName(); String jobFile = MRApps.getJobFile(conf, user, jobID); DAGStatus dagStatus;/*w w w. j a v a2s . com*/ try { if (dagClient == null) { dagClient = MRTezClient.getDAGClient(TypeConverter.toYarn(jobID).getAppId(), tezConf, null); } dagStatus = dagClient.getDAGStatus(null); return new DAGJobStatus(dagClient.getApplicationReport(), dagStatus, jobFile); } catch (TezException e) { throw new IOException(e); } }
From source file:org.apache.tez.mapreduce.YARNRunner.java
License:Apache License
@Override public JobStatus getJobStatus(JobID jobID) throws IOException, InterruptedException { String user = UserGroupInformation.getCurrentUser().getShortUserName(); String jobFile = MRApps.getJobFile(conf, user, jobID); DAGStatus dagStatus;/* w ww. j a v a2s. com*/ try { if (dagClient == null) { dagClient = tezClient.getDAGClient(TypeConverter.toYarn(jobID).getAppId()); } dagStatus = dagClient.getDAGStatus(); return new DAGJobStatus(dagClient.getApplicationReport(), dagStatus, jobFile); } catch (TezException e) { throw new IOException(e); } }