org.apache.tez.dag.app.rm.container
Class AMContainerHelpers
java.lang.Object
org.apache.tez.dag.app.rm.container.AMContainerHelpers
public class AMContainerHelpers
- extends Object
|
Method Summary |
static org.apache.hadoop.yarn.api.records.ContainerLaunchContext |
createContainerLaunchContext(org.apache.tez.dag.records.TezDAGID tezDAGID,
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,
boolean shouldProfile,
String profileOpts,
AppContext appContext)
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AMContainerHelpers
public AMContainerHelpers()
createLocalResource
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
- Create a
LocalResource record with all the given parameters.
- Throws:
IOException
createContainerLaunchContext
public static org.apache.hadoop.yarn.api.records.ContainerLaunchContext createContainerLaunchContext(org.apache.tez.dag.records.TezDAGID tezDAGID,
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,
boolean shouldProfile,
String profileOpts,
AppContext appContext)
Copyright © 2014 Apache Software Foundation. All rights reserved.