List of usage examples for org.apache.hadoop.yarn.api.protocolrecords GetApplicationReportRequest setApplicationId
@Public @Stable public abstract void setApplicationId(ApplicationId applicationId);
ApplicationId
of the application From source file:com.cloudera.kitten.client.service.YarnClientServiceImpl.java
License:Open Source License
@Override public ApplicationReport getApplicationReport() { GetApplicationReportRequest reportRequest = Records.newRecord(GetApplicationReportRequest.class); reportRequest.setApplicationId(applicationId); try {//from w w w . j a v a 2 s . c o m GetApplicationReportResponse response = applicationsManager.getApplicationReport(reportRequest); return response.getApplicationReport(); } catch (YarnRemoteException e) { LOG.error("Exception occurred requesting application report", e); return null; } }
From source file:org.deeplearning4j.iterativereduce.runtime.yarn.ResourceManagerHandler.java
License:Apache License
public ApplicationReport getApplicationReport(ApplicationId appId) throws YarnRemoteException { if (clientResourceManager == null) throw new IllegalStateException("Cannot query for a report without first connecting!"); GetApplicationReportRequest req = Records.newRecord(GetApplicationReportRequest.class); req.setApplicationId(appId); return clientResourceManager.getApplicationReport(req).getApplicationReport(); }
From source file:org.springframework.yarn.client.ClientRmTemplate.java
License:Apache License
@Override public ApplicationReport getApplicationReport(final ApplicationId applicationId) { return execute(new YarnRpcCallback<ApplicationReport, ApplicationClientProtocol>() { @Override/*from w ww . j a v a 2s. com*/ public ApplicationReport doInYarn(ApplicationClientProtocol proxy) throws YarnException, IOException { GetApplicationReportRequest request = Records.newRecord(GetApplicationReportRequest.class); request.setApplicationId(applicationId); return proxy.getApplicationReport(request).getApplicationReport(); } }); }