Spring for Apache Hadoop

org.springframework.yarn.boot.app
Class YarnSubmitApplication

java.lang.Object
  extended by org.springframework.yarn.boot.app.AbstractClientApplication<YarnSubmitApplication>
      extended by org.springframework.yarn.boot.app.YarnSubmitApplication

@Configuration
@EnableAutoConfiguration(exclude={org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration.class,org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration.class,org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration.class,org.springframework.boot.autoconfigure.batch.BatchAutoConfiguration.class})
public class YarnSubmitApplication
extends AbstractClientApplication<YarnSubmitApplication>

Generic Spring Boot client application used to submit Spring Yarn Boot based apps into Yarn.

Author:
Janne Valkealahti

Field Summary
 
Fields inherited from class org.springframework.yarn.boot.app.AbstractClientApplication
applicationBaseDir, applicationVersion, appProperties, profiles, sources
 
Constructor Summary
YarnSubmitApplication()
           
 
Method Summary
protected  YarnSubmitApplication getThis()
          Gets the instance of this defined by a sub-class.
 org.apache.hadoop.yarn.api.records.ApplicationId run()
          Run a SpringApplication build by a SpringApplicationBuilder using an empty args.
 org.apache.hadoop.yarn.api.records.ApplicationId run(java.lang.String... args)
          Run a SpringApplication build by a SpringApplicationBuilder using an empty args.
 
Methods inherited from class org.springframework.yarn.boot.app.AbstractClientApplication
applicationBaseDir, applicationVersion, appProperties, profiles, sources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YarnSubmitApplication

public YarnSubmitApplication()
Method Detail

run

public org.apache.hadoop.yarn.api.records.ApplicationId run()
Run a SpringApplication build by a SpringApplicationBuilder using an empty args.

Returns:
the application id
See Also:
run(String...)

run

public org.apache.hadoop.yarn.api.records.ApplicationId run(java.lang.String... args)
Run a SpringApplication build by a SpringApplicationBuilder using an empty args.

Parameters:
args - the args
Returns:
the application id

getThis

protected YarnSubmitApplication getThis()
Description copied from class: AbstractClientApplication
Gets the instance of this defined by a sub-class. Needed for methods in this abstract class to be able to return correct type for method chaining.

Specified by:
getThis in class AbstractClientApplication<YarnSubmitApplication>
Returns:
the this instance

Spring for Apache Hadoop