Example usage for Java org.apache.hadoop.yarn.client.api YarnClient fields, constructors, methods, implement or subclass
The text is from its open source code.
void | close() Relay to #stop() |
YarnClientApplication | createApplication() Obtain a YarnClientApplication for a new application, which in turn contains the ApplicationSubmissionContext and org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse objects. |
YarnClient | createYarnClient() Create a new instance of YarnClient. |
List | getAllQueues() Get information ( QueueInfo ) about all queues, recursively if there is a hierarchy |
org.apache.hadoop.security.token.Token | getAMRMToken(ApplicationId appId) Get the AMRM token of the application. |
ApplicationAttemptReport | getApplicationAttemptReport(ApplicationAttemptId applicationAttemptId) Get a report of the given ApplicationAttempt. |
List | getApplicationAttempts(ApplicationId applicationId) Get a report of all (ApplicationAttempts) of Application in the cluster. |
ApplicationReport | getApplicationReport(ApplicationId appId) Get a report of the given Application. |
List | getApplications() Get a report (ApplicationReport) of all Applications in the cluster. |
List | getApplications(Set Get a report (ApplicationReport) of Applications matching the given application types in the cluster. |
List | getApplications(EnumSet Get a report (ApplicationReport) of Applications matching the given application states in the cluster. |
List | getApplications(GetApplicationsRequest request) Get a list of ApplicationReports that match the given GetApplicationsRequest . |
List | getApplications(Set Get a report (ApplicationReport) of Applications matching the given application types and application states in the cluster. |
Configuration | getConfig() |
List | getContainers(ApplicationAttemptId applicationAttemptId) Get a report of all (Containers) of ApplicationAttempt in the cluster. |
List | getNodeReports(NodeState... states) Get a report of nodes ( NodeReport ) in the cluster. |
List | getQueueAclsInfo() Get information about acls for current user on all the existing queues. |
QueueInfo | getQueueInfo(String queueName) Get information ( QueueInfo ) about a given queue. |
Token | getRMDelegationToken(Text renewer) Get a delegation token so as to be able to talk to YARN using those tokens. |
YarnClusterMetrics | getYarnClusterMetrics() Get metrics ( YarnClusterMetrics ) about the cluster. |
void | init(Configuration conf) This invokes #serviceInit |
boolean | isInState(Service.STATE expected) |
void | killApplication(ApplicationId applicationId) Kill an application identified by given ID. |
void | start() |
void | stop() |
ApplicationId | submitApplication(ApplicationSubmissionContext appContext) Submit a new application to |