public interface YarnClient
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.yarn.api.records.ApplicationReport |
getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
Gets a report of the application.
|
void |
installApplication()
Installs the application known to
YarnClient instance into hdfs. |
void |
killApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
Requests a resource manager to kill the application.
|
java.util.List<org.apache.hadoop.yarn.api.records.ApplicationReport> |
listApplications()
Gets a list of known applications.
|
java.util.List<org.apache.hadoop.yarn.api.records.ApplicationReport> |
listApplications(java.lang.String type)
Gets a list of known applications filtered by an application type.
|
java.util.List<org.apache.hadoop.yarn.api.records.ApplicationReport> |
listRunningApplications(java.lang.String type)
Gets a list of running applications filtered by an application type.
|
org.apache.hadoop.yarn.api.records.ApplicationId |
submitApplication()
Submits the application known to
YarnClient instance. |
org.apache.hadoop.yarn.api.records.ApplicationId |
submitApplication(boolean distribute)
Submits the application known to
YarnClient instance. |
org.apache.hadoop.yarn.api.records.ApplicationId submitApplication()
YarnClient instance.ApplicationId for submitted applicationorg.apache.hadoop.yarn.api.records.ApplicationId submitApplication(boolean distribute)
YarnClient instance.distribute - if set to true files will also be copiedApplicationId for submitted applicationvoid installApplication()
YarnClient instance into hdfs.java.util.List<org.apache.hadoop.yarn.api.records.ApplicationReport> listApplications()
ApplicationReportsjava.util.List<org.apache.hadoop.yarn.api.records.ApplicationReport> listApplications(java.lang.String type)
type - the yarn application typeApplicationReportsjava.util.List<org.apache.hadoop.yarn.api.records.ApplicationReport> listRunningApplications(java.lang.String type)
type - the yarn application typeApplicationReportsvoid killApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
applicationId - the ApplicationIdorg.apache.hadoop.yarn.api.records.ApplicationReport getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
applicationId - the application idApplicationReport