@InterfaceAudience.Public @InterfaceStability.Unstable public abstract class HadoopShim extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CPU_RESOURCE |
static String |
MEMORY_RESOURCE |
| Constructor and Description |
|---|
HadoopShim() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.yarn.api.records.FinalApplicationStatus |
applyFinalApplicationStatusCorrection(org.apache.hadoop.yarn.api.records.FinalApplicationStatus orig,
boolean isSessionMode,
boolean isError) |
void |
clearHadoopCallerContext()
Clear the Hadoop Caller Context
|
Set<String> |
getSupportedResourceTypes(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse response)
Extract supported Resource types from the RM's response when the AM registers
|
void |
setHadoopCallerContext(String context)
Set up Hadoop Caller Context
|
public static String CPU_RESOURCE
public static String MEMORY_RESOURCE
public void setHadoopCallerContext(String context)
context - Context to be setpublic void clearHadoopCallerContext()
public Set<String> getSupportedResourceTypes(org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse response)
response - ApplicationMasterResponse from RM after registeringpublic org.apache.hadoop.yarn.api.records.FinalApplicationStatus applyFinalApplicationStatusCorrection(org.apache.hadoop.yarn.api.records.FinalApplicationStatus orig,
boolean isSessionMode,
boolean isError)
Copyright © 2022 Apache Software Foundation. All rights reserved.