Spring for Apache Hadoop

org.springframework.yarn.client
Interface YarnClient

All Known Implementing Classes:
AbstractYarnClient, CommandYarnClient

public interface YarnClient

Interface for Spring Yarn facing client methods.

Author:
Janne Valkealahti

Method Summary
 org.apache.hadoop.yarn.api.records.ApplicationReport getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
          Gets a report of the application.
 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.
 org.apache.hadoop.yarn.api.records.ApplicationId submitApplication()
          Submits the application known to YarnClient instance.
 

Method Detail

submitApplication

org.apache.hadoop.yarn.api.records.ApplicationId submitApplication()
Submits the application known to YarnClient instance.

Returns:
the ApplicationId for submitted application

listApplications

java.util.List<org.apache.hadoop.yarn.api.records.ApplicationReport> listApplications()
Gets a list of known applications.

Returns:
List of ApplicationReports

killApplication

void killApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
Requests a resource manager to kill the application.

Parameters:
applicationId - the ApplicationId

getApplicationReport

org.apache.hadoop.yarn.api.records.ApplicationReport getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
Gets a report of the application.

Parameters:
applicationId - the application id
Returns:
the ApplicationReport

Spring for Apache Hadoop