org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer
Class ContainerLocalizer

java.lang.Object
  extended by org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.ContainerLocalizer

public class ContainerLocalizer
extends Object


Field Summary
static String APPCACHE
           
static String FILECACHE
           
static String OUTPUTDIR
           
static String TOKEN_FILE_NAME_FMT
           
static String USERCACHE
           
static String WORKDIR
           
 
Constructor Summary
ContainerLocalizer(org.apache.hadoop.fs.FileContext lfs, String user, String appId, String localizerId, List<org.apache.hadoop.fs.Path> localDirs, org.apache.hadoop.yarn.factories.RecordFactory recordFactory)
           
 
Method Summary
protected  void closeFileSystems(org.apache.hadoop.security.UserGroupInformation ugi)
           
protected  void localizeFiles(LocalizationProtocol nodemanager, CompletionService<org.apache.hadoop.fs.Path> cs, org.apache.hadoop.security.UserGroupInformation ugi)
           
static void main(String[] argv)
           
 int runLocalization(InetSocketAddress nmAddr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILECACHE

public static final String FILECACHE
See Also:
Constant Field Values

APPCACHE

public static final String APPCACHE
See Also:
Constant Field Values

USERCACHE

public static final String USERCACHE
See Also:
Constant Field Values

OUTPUTDIR

public static final String OUTPUTDIR
See Also:
Constant Field Values

TOKEN_FILE_NAME_FMT

public static final String TOKEN_FILE_NAME_FMT
See Also:
Constant Field Values

WORKDIR

public static final String WORKDIR
See Also:
Constant Field Values
Constructor Detail

ContainerLocalizer

public ContainerLocalizer(org.apache.hadoop.fs.FileContext lfs,
                          String user,
                          String appId,
                          String localizerId,
                          List<org.apache.hadoop.fs.Path> localDirs,
                          org.apache.hadoop.yarn.factories.RecordFactory recordFactory)
                   throws IOException
Throws:
IOException
Method Detail

runLocalization

public int runLocalization(InetSocketAddress nmAddr)
                    throws IOException,
                           InterruptedException
Throws:
IOException
InterruptedException

closeFileSystems

protected void closeFileSystems(org.apache.hadoop.security.UserGroupInformation ugi)

localizeFiles

protected void localizeFiles(LocalizationProtocol nodemanager,
                             CompletionService<org.apache.hadoop.fs.Path> cs,
                             org.apache.hadoop.security.UserGroupInformation ugi)
                      throws IOException
Throws:
IOException

main

public static void main(String[] argv)
                 throws Throwable
Throws:
Throwable


Copyright © 2013 Apache Software Foundation. All Rights Reserved.