public class

AppLauncher

extends Object
java.lang.Object
   ↳ org.apache.helix.provisioning.yarn.AppLauncher

Class Overview

Main class to launch the job. Gets the yaml file as the input. Converts yaml file into ApplicationSpec.

Summary

Public Constructors
AppLauncher(ApplicationSpecFactory applicationSpecFactory, File yamlConfigFile)
Public Methods
void cleanup()
ApplicationReport getApplicationReport()
ApplicationSpec getApplicationSpec()
boolean launch()
static void main(String[] args)
Launches the application on a YARN cluster.
HelixConnection pollForConnection()
boolean waitUntilDone()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AppLauncher (ApplicationSpecFactory applicationSpecFactory, File yamlConfigFile)

Throws
Exception

Public Methods

public void cleanup ()

public ApplicationReport getApplicationReport ()

public ApplicationSpec getApplicationSpec ()

public boolean launch ()

Throws
Exception

public static void main (String[] args)

Launches the application on a YARN cluster. Once launched, it will display (periodically) the status of the containers in the application.

Parameters
args app_spec_provider and app_config_spec
Throws
Exception

public HelixConnection pollForConnection ()

public boolean waitUntilDone ()

Returns
  • true if successfully completed, it will print status every X seconds