Class ContainerLocalizer
java.lang.Object
org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.ContainerLocalizer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbuildMainArgs(List<String> command, String user, String appId, String locId, InetSocketAddress nmAddr, String tokenFileName, List<String> localDirs, org.apache.hadoop.conf.Configuration conf) Adds the ContainerLocalizer arguments for a @{link ShellCommandExecutor}, as expected by ContainerLocalizer.mainprotected voidcloseFileSystems(org.apache.hadoop.security.UserGroupInformation ugi) getJavaOpts(org.apache.hadoop.conf.Configuration conf) Returns the JVM options to to launch the resource localizer.getProxy(InetSocketAddress nmAddr) protected voidlocalizeFiles(LocalizationProtocol nodemanager, CompletionService<org.apache.hadoop.fs.Path> cs, org.apache.hadoop.security.UserGroupInformation ugi) static voidvoidrunLocalization(InetSocketAddress nmAddr)
-
Field Details
-
FILECACHE
- See Also:
-
APPCACHE
- See Also:
-
USERCACHE
- See Also:
-
CSI_VOLIUME_MOUNTS_ROOT
- See Also:
-
-
Constructor Details
-
ContainerLocalizer
public ContainerLocalizer(org.apache.hadoop.fs.FileContext lfs, String user, String appId, String localizerId, String tokenFileName, List<org.apache.hadoop.fs.Path> localDirs, org.apache.hadoop.yarn.factories.RecordFactory recordFactory) throws IOException - Throws:
IOException
-
-
Method Details
-
getProxy
-
runLocalization
- Throws:
IOExceptionInterruptedException
-
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, org.apache.hadoop.yarn.exceptions.YarnException - Throws:
IOExceptionorg.apache.hadoop.yarn.exceptions.YarnException
-
getJavaOpts
Returns the JVM options to to launch the resource localizer.- Parameters:
conf- the configuration properties to launch the resource localizer.
-
buildMainArgs
public static void buildMainArgs(List<String> command, String user, String appId, String locId, InetSocketAddress nmAddr, String tokenFileName, List<String> localDirs, org.apache.hadoop.conf.Configuration conf) Adds the ContainerLocalizer arguments for a @{link ShellCommandExecutor}, as expected by ContainerLocalizer.main- Parameters:
command- the current ShellCommandExecutor command lineuser- localization userappId- localized app idlocId- localizer idnmAddr- nodemanager addresslocalDirs- list of local dirs
-
main
- Throws:
Throwable
-