Java org.apache.hadoop.yarn.client.api YarnClient fields, constructors, methods, implement or subclass

Example usage for Java org.apache.hadoop.yarn.client.api YarnClient fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.hadoop.yarn.client.api YarnClient.

The text is from its open source code.

Method

voidclose()
Relay to #stop()
YarnClientApplicationcreateApplication()

Obtain a YarnClientApplication for a new application, which in turn contains the ApplicationSubmissionContext and org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse objects.

YarnClientcreateYarnClient()
Create a new instance of YarnClient.
ListgetAllQueues()

Get information ( QueueInfo ) about all queues, recursively if there is a hierarchy

org.apache.hadoop.security.token.TokengetAMRMToken(ApplicationId appId)
Get the AMRM token of the application.
ApplicationAttemptReportgetApplicationAttemptReport(ApplicationAttemptId applicationAttemptId)

Get a report of the given ApplicationAttempt.

ListgetApplicationAttempts(ApplicationId applicationId)

Get a report of all (ApplicationAttempts) of Application in the cluster.

ApplicationReportgetApplicationReport(ApplicationId appId)

Get a report of the given Application.

ListgetApplications()

Get a report (ApplicationReport) of all Applications in the cluster.

ListgetApplications(Set applicationTypes)

Get a report (ApplicationReport) of Applications matching the given application types in the cluster.

ListgetApplications(EnumSet applicationStates)

Get a report (ApplicationReport) of Applications matching the given application states in the cluster.

ListgetApplications(GetApplicationsRequest request)

Get a list of ApplicationReports that match the given GetApplicationsRequest .

ListgetApplications(Set applicationTypes, EnumSet applicationStates)

Get a report (ApplicationReport) of Applications matching the given application types and application states in the cluster.

ConfigurationgetConfig()
ListgetContainers(ApplicationAttemptId applicationAttemptId)

Get a report of all (Containers) of ApplicationAttempt in the cluster.

ListgetNodeReports(NodeState... states)

Get a report of nodes ( NodeReport ) in the cluster.

ListgetQueueAclsInfo()

Get information about acls for current user on all the existing queues.

QueueInfogetQueueInfo(String queueName)

Get information ( QueueInfo ) about a given queue.

TokengetRMDelegationToken(Text renewer)

Get a delegation token so as to be able to talk to YARN using those tokens.

YarnClusterMetricsgetYarnClusterMetrics()

Get metrics ( YarnClusterMetrics ) about the cluster.

voidinit(Configuration conf)
This invokes #serviceInit
booleanisInState(Service.STATE expected)
voidkillApplication(ApplicationId applicationId)

Kill an application identified by given ID.

voidstart()
voidstop()
ApplicationIdsubmitApplication(ApplicationSubmissionContext appContext)

Submit a new application to YARN. It is a blocking call - it will not return ApplicationId until the submitted application is submitted successfully and accepted by the ResourceManager.