public class ContainerContext extends Object
| Constructor and Description |
|---|
ContainerContext(Map<String,org.apache.hadoop.yarn.api.records.LocalResource> localResources,
org.apache.hadoop.security.Credentials credentials,
Map<String,String> environment,
String javaOpts) |
ContainerContext(Map<String,org.apache.hadoop.yarn.api.records.LocalResource> localResources,
org.apache.hadoop.security.Credentials credentials,
Map<String,String> environment,
String javaOpts,
Vertex vertex) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.security.Credentials |
getCredentials() |
Map<String,String> |
getEnvironment() |
String |
getJavaOpts() |
Map<String,org.apache.hadoop.yarn.api.records.LocalResource> |
getLocalResources() |
boolean |
isExactMatch(ContainerContext otherContext) |
boolean |
isSuperSet(ContainerContext otherContext) |
String |
toString() |
static ContainerContext |
union(ContainerContext c1,
ContainerContext c2)
Create a new ContainerContext to account for container re-use.
|
public ContainerContext(Map<String,org.apache.hadoop.yarn.api.records.LocalResource> localResources, org.apache.hadoop.security.Credentials credentials, Map<String,String> environment, String javaOpts)
public Map<String,org.apache.hadoop.yarn.api.records.LocalResource> getLocalResources()
public org.apache.hadoop.security.Credentials getCredentials()
public String getJavaOpts()
public boolean isSuperSet(ContainerContext otherContext)
public boolean isExactMatch(ContainerContext otherContext)
public static ContainerContext union(ContainerContext c1, ContainerContext c2)
c1 - ContainerContext 1 Original task's contextc2 - ContainerContext 2 Newly assigned task's contextCopyright © 2020 Apache Software Foundation. All rights reserved.