org.apache.hadoop.mapred
Class LocalContainerLauncher

java.lang.Object
  extended by org.apache.hadoop.yarn.service.AbstractService
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncher
ContainerLauncher.EventType
 
Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service
org.apache.hadoop.yarn.service.Service.STATE
 
Constructor Summary
LocalContainerLauncher(AppContext context, org.apache.hadoop.mapred.TaskUmbilicalProtocol umbilical)
           
 
Method Summary
 void handle(ContainerLauncherEvent event)
           
 void start()
           
 void stop()
           
 
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
 

Constructor Detail

LocalContainerLauncher

public LocalContainerLauncher(AppContext context,
                              org.apache.hadoop.mapred.TaskUmbilicalProtocol umbilical)
Method Detail

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.