Spring for Apache Hadoop

org.springframework.yarn.client
Interface ApplicationYarnClient

All Superinterfaces:
YarnClient
All Known Implementing Classes:
DefaultApplicationYarnClient

public interface ApplicationYarnClient
extends YarnClient

A ApplicationYarnClient is an extension of YarnClient introducing more direct semantics of an application. Core yarn and generally when something is executed on yarn, there are no hard dependencies of existing application files.

This interface adds these semantics by using an ApplicationDescriptor which an implementation can for example use to guard against various application problems like not overwriting existing application instance or trying to launch an application which doesn't exist.

Author:
Janne Valkealahti

Method Summary
 void installApplication(ApplicationDescriptor descriptor)
          Install application based on ApplicationDescriptor.
 org.apache.hadoop.yarn.api.records.ApplicationId submitApplication(ApplicationDescriptor descriptor)
          Submit application based on ApplicationDescriptor.
 
Methods inherited from interface org.springframework.yarn.client.YarnClient
getApplicationReport, installApplication, killApplication, listApplications, listApplications, listRunningApplications, submitApplication, submitApplication
 

Method Detail

installApplication

void installApplication(ApplicationDescriptor descriptor)
Install application based on ApplicationDescriptor.

Parameters:
descriptor - the application descriptor

submitApplication

org.apache.hadoop.yarn.api.records.ApplicationId submitApplication(ApplicationDescriptor descriptor)
Submit application based on ApplicationDescriptor.

Parameters:
descriptor - the application descriptor
Returns:
the application id

Spring for Apache Hadoop