public class AMContainerHelpers extends Object
| Constructor and Description |
|---|
AMContainerHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.yarn.api.records.ContainerLaunchContext |
createContainerLaunchContext(org.apache.tez.dag.records.TezDAGID tezDAGID,
Map<String,org.apache.hadoop.yarn.api.records.LocalResource> commonDAGLRs,
Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType,String> acls,
org.apache.hadoop.yarn.api.records.ContainerId containerId,
Map<String,org.apache.hadoop.yarn.api.records.LocalResource> localResources,
Map<String,String> vertexEnv,
String javaOpts,
InetSocketAddress taskAttemptListenerAddress,
org.apache.hadoop.security.Credentials credentials,
AppContext appContext,
org.apache.hadoop.yarn.api.records.Resource containerResource,
org.apache.hadoop.conf.Configuration conf) |
static org.apache.hadoop.yarn.api.records.LocalResource |
createLocalResource(org.apache.hadoop.fs.FileSystem fc,
org.apache.hadoop.fs.Path file,
org.apache.hadoop.yarn.api.records.LocalResourceType type,
org.apache.hadoop.yarn.api.records.LocalResourceVisibility visibility)
Create a
LocalResource record with all the given parameters. |
public static org.apache.hadoop.yarn.api.records.LocalResource createLocalResource(org.apache.hadoop.fs.FileSystem fc,
org.apache.hadoop.fs.Path file,
org.apache.hadoop.yarn.api.records.LocalResourceType type,
org.apache.hadoop.yarn.api.records.LocalResourceVisibility visibility)
throws IOException
LocalResource record with all the given parameters.IOExceptionpublic static org.apache.hadoop.yarn.api.records.ContainerLaunchContext createContainerLaunchContext(org.apache.tez.dag.records.TezDAGID tezDAGID,
Map<String,org.apache.hadoop.yarn.api.records.LocalResource> commonDAGLRs,
Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType,String> acls,
org.apache.hadoop.yarn.api.records.ContainerId containerId,
Map<String,org.apache.hadoop.yarn.api.records.LocalResource> localResources,
Map<String,String> vertexEnv,
String javaOpts,
InetSocketAddress taskAttemptListenerAddress,
org.apache.hadoop.security.Credentials credentials,
AppContext appContext,
org.apache.hadoop.yarn.api.records.Resource containerResource,
org.apache.hadoop.conf.Configuration conf)
Copyright © 2014 Apache Software Foundation. All rights reserved.