org.apache.hadoop.mapred
Class LocalContainerLauncher
java.lang.Object
org.apache.hadoop.yarn.service.AbstractService
org.apache.hadoop.mapred.LocalContainerLauncher
- All Implemented Interfaces:
- ContainerLauncher, org.apache.hadoop.yarn.event.EventHandler<ContainerLauncherEvent>, org.apache.hadoop.yarn.service.Service
public class LocalContainerLauncher
- extends org.apache.hadoop.yarn.service.AbstractService
- implements ContainerLauncher
Runs the container task locally in a thread.
Since all (sub)tasks share the same local directory, they must be executed
sequentially in order to avoid creating/deleting the same files/dirs.
| Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service |
org.apache.hadoop.yarn.service.Service.STATE |
| Methods inherited from class org.apache.hadoop.yarn.service.AbstractService |
getConfig, getName, getServiceState, getStartTime, init, register, unregister |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalContainerLauncher
public LocalContainerLauncher(AppContext context,
org.apache.hadoop.mapred.TaskUmbilicalProtocol umbilical)
start
public void start()
- Specified by:
start in interface org.apache.hadoop.yarn.service.Service- Overrides:
start in class org.apache.hadoop.yarn.service.AbstractService
stop
public void stop()
- Specified by:
stop in interface org.apache.hadoop.yarn.service.Service- Overrides:
stop in class org.apache.hadoop.yarn.service.AbstractService
handle
public void handle(ContainerLauncherEvent event)
- Specified by:
handle in interface org.apache.hadoop.yarn.event.EventHandler<ContainerLauncherEvent>
Copyright © 2012 Apache Software Foundation. All Rights Reserved.