List of usage examples for org.apache.hadoop.mapreduce TypeConverter fromYarnApps
public static JobStatus[] fromYarnApps(List<ApplicationReport> applications, Configuration conf)
From source file:org.apache.tez.mapreduce.client.ResourceMgrDelegate.java
License:Apache License
public JobStatus[] getAllJobs() throws IOException, InterruptedException { try {/*from w w w . j a v a 2 s. c om*/ Set<String> appTypes = new HashSet<String>(1); appTypes.add(TezConstants.TEZ_APPLICATION_TYPE); return TypeConverter.fromYarnApps(client.getApplications(appTypes), this.conf); } catch (YarnException e) { throw new IOException(e); } }
From source file:org.apache.tez.mapreduce.ResourceMgrDelegate.java
License:Apache License
public JobStatus[] getAllJobs() throws IOException, InterruptedException { try {/*from w w w. j ava 2s . com*/ Set<String> appTypes = new HashSet<String>(1); appTypes.add(TezConfiguration.TEZ_APPLICATION_TYPE); return TypeConverter.fromYarnApps(client.getApplications(appTypes), this.conf); } catch (YarnException e) { throw new IOException(e); } }