@InterfaceAudience.Private public class Apps extends Object
Constructor and Description |
---|
Apps() |
Modifier and Type | Method and Description |
---|---|
static void |
addToEnvironment(Map<String,String> environment,
String variable,
String value)
Deprecated.
|
static void |
addToEnvironment(Map<String,String> environment,
String variable,
String value,
String classPathSeparator) |
static String |
crossPlatformify(String var) |
static Set<String> |
getEnvVarsFromInputProperty(String propName,
String defaultPropValue,
org.apache.hadoop.conf.Configuration conf)
Return the list of environment variable names specified in the
given property or default string and those specified individually
with the propname.VARNAME syntax (e.g., mapreduce.map.env.VARNAME=value).
|
static boolean |
isApplicationFinalState(org.apache.hadoop.yarn.api.records.YarnApplicationState appState)
Returns whether a given application state is final: FINISHED,
FAILED or KILLED.
|
static void |
setEnvFromInputProperty(Map<String,String> env,
String propName,
String defaultPropValue,
org.apache.hadoop.conf.Configuration conf,
String classPathSeparator)
Set environment variables from the given environment input property.
|
static void |
setEnvFromInputString(Map<String,String> env,
String envString)
Deprecated.
|
static void |
setEnvFromInputString(Map<String,String> env,
String envString,
String classPathSeparator) |
static boolean |
shouldCountTowardsNodeBlacklisting(int exitStatus) |
static void |
shouldHaveNext(String prefix,
String s,
Iterator<String> it) |
static void |
throwParseException(String name,
String s) |
static org.apache.hadoop.yarn.api.records.ApplicationId |
toAppID(String aid) |
static org.apache.hadoop.yarn.api.records.ApplicationId |
toAppID(String prefix,
String s,
Iterator<String> it) |
public static final String APP
public static final String ID
public static org.apache.hadoop.yarn.api.records.ApplicationId toAppID(String aid)
public static org.apache.hadoop.yarn.api.records.ApplicationId toAppID(String prefix, String s, Iterator<String> it)
public static void setEnvFromInputString(Map<String,String> env, String envString, String classPathSeparator)
public static void setEnvFromInputProperty(Map<String,String> env, String propName, String defaultPropValue, org.apache.hadoop.conf.Configuration conf, String classPathSeparator)
env
- the environment to updatepropName
- the name of the propertydefaultPropValue
- the default value for propNameconf
- configuration containing propertiesclassPathSeparator
- Separator used when appending to an existing varpublic static Set<String> getEnvVarsFromInputProperty(String propName, String defaultPropValue, org.apache.hadoop.conf.Configuration conf)
propName
- the name of the propertydefaultPropValue
- the default value for propNameconf
- configuration containing properties@Deprecated public static void setEnvFromInputString(Map<String,String> env, String envString)
env
- the environment to update.envString
- String containing env variable definitions.@InterfaceAudience.Public @InterfaceStability.Unstable public static void addToEnvironment(Map<String,String> environment, String variable, String value, String classPathSeparator)
@Deprecated public static void addToEnvironment(Map<String,String> environment, String variable, String value)
environment
- map of environment variable.variable
- variable.value
- value.@InterfaceAudience.Private @InterfaceStability.Unstable public static boolean shouldCountTowardsNodeBlacklisting(int exitStatus)
public static boolean isApplicationFinalState(org.apache.hadoop.yarn.api.records.YarnApplicationState appState)
appState
- application stateCopyright © 2008–2024 Apache Software Foundation. All rights reserved.