public class YarnContainerRunner
extends java.lang.Object
| Constructor and Description |
|---|
YarnContainerRunner(org.apache.samza.config.Config config,
org.apache.hadoop.yarn.conf.YarnConfiguration yarnConfiguration)
Create a new Runner from a Config.
|
| Modifier and Type | Method and Description |
|---|---|
void |
runContainer(java.lang.String samzaContainerId,
org.apache.hadoop.yarn.api.records.Container container,
org.apache.samza.job.CommandBuilder cmdBuilder)
Runs a process as specified by the command builder on the container.
|
public YarnContainerRunner(org.apache.samza.config.Config config,
org.apache.hadoop.yarn.conf.YarnConfiguration yarnConfiguration)
config - to instantiate the runner withyarnConfiguration - the yarn config for the cluster to connect to.public void runContainer(java.lang.String samzaContainerId,
org.apache.hadoop.yarn.api.records.Container container,
org.apache.samza.job.CommandBuilder cmdBuilder)
throws org.apache.samza.clustermanager.SamzaContainerLaunchException
samzaContainerId - id of the samza Container to run (passed as a command line parameter to the process)container - the samza container to run.cmdBuilder - the command builder that encapsulates the command, and the contextSamzaContainerLaunchException - when there's an exception in submitting the request to the RM.org.apache.samza.clustermanager.SamzaContainerLaunchException