Package org.apache.hadoop.yarn.api
Enum Class ApplicationConstants.Environment
java.lang.Object
java.lang.Enum<ApplicationConstants.Environment>
org.apache.hadoop.yarn.api.ApplicationConstants.Environment
- All Implemented Interfaces:
Serializable,Comparable<ApplicationConstants.Environment>,Constable
- Enclosing interface:
- ApplicationConstants
Environment for Applications.
Some of the environment variables for applications are final
i.e. they cannot be modified by the applications.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription$APP_CLASSPATH$CLASSPATH$CLASSPATH_PREPEND_DISTCACHE Private, Windows specific$CONTAINER_ID Final, exported by NodeManager and non-modifiable by users.$HADOOP_COMMON_HOME$HADOOP_CONF_DIR Final, non-modifiable.$HADOOP_HDFS_HOME$HADOOP_YARN_HOME$HOME Final, non-modifiable.$JAVA_HOME$LD_LIBRARY_PATH$LOCAL_DIRS Final, exported by NodeManager and non-modifiable by users.$LOCAL_USER_DIRS Final, exported by NodeManager and non-modifiable by users.$LOCALIZATION_COUNTERS Since NM does not RPC Container JVM's we pass Localization counter vector as an environment variable$LOG_DIRS Final, exported by NodeManager and non-modifiable by users.$LOGNAME Final, non-modifiable.$MALLOC_ARENA_MAX$NM_HOST Final, exported by NodeManager and non-modifiable by users.$NM_HTTP_PORT Final, exported by NodeManager and non-modifiable by users.$NM_PORT Final, exported by NodeManager and non-modifiable by users.$PATH$PWD Final, non-modifiable.$SHELL$USER Final, non-modifiable.$YARN_CONTAINER_RUNTIME_DOCKER_RUN_OVERRIDE_DISABLE Final, Docker run support ENTRY_POINT.$YARN_CONTAINER_RUNTIME_YARN_SYSFS_ENABLE Final, expose cluster information to container. -
Method Summary
Modifier and TypeMethodDescription$()Expand the environment variable based on client OS environment variable expansion syntax (e.g.$$()Expand the environment variable in platform-agnostic syntax.key()toString()Returns the enum constant of this class with the specified name.static ApplicationConstants.Environment[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
USER
$USER Final, non-modifiable. -
LOGNAME
$LOGNAME Final, non-modifiable. -
HOME
$HOME Final, non-modifiable. -
PWD
$PWD Final, non-modifiable. -
PATH
$PATH -
SHELL
$SHELL -
JAVA_HOME
$JAVA_HOME -
CLASSPATH
$CLASSPATH -
APP_CLASSPATH
$APP_CLASSPATH -
LD_LIBRARY_PATH
$LD_LIBRARY_PATH -
HADOOP_CONF_DIR
$HADOOP_CONF_DIR Final, non-modifiable. -
HADOOP_COMMON_HOME
$HADOOP_COMMON_HOME -
HADOOP_HDFS_HOME
$HADOOP_HDFS_HOME -
MALLOC_ARENA_MAX
$MALLOC_ARENA_MAX -
HADOOP_YARN_HOME
$HADOOP_YARN_HOME -
CLASSPATH_PREPEND_DISTCACHE
$CLASSPATH_PREPEND_DISTCACHE Private, Windows specific -
LOCALIZATION_COUNTERS
$LOCALIZATION_COUNTERS Since NM does not RPC Container JVM's we pass Localization counter vector as an environment variable -
CONTAINER_ID
$CONTAINER_ID Final, exported by NodeManager and non-modifiable by users. -
NM_HOST
$NM_HOST Final, exported by NodeManager and non-modifiable by users. -
NM_HTTP_PORT
$NM_HTTP_PORT Final, exported by NodeManager and non-modifiable by users. -
NM_PORT
$NM_PORT Final, exported by NodeManager and non-modifiable by users. -
LOCAL_DIRS
$LOCAL_DIRS Final, exported by NodeManager and non-modifiable by users. -
LOCAL_USER_DIRS
$LOCAL_USER_DIRS Final, exported by NodeManager and non-modifiable by users. -
LOG_DIRS
$LOG_DIRS Final, exported by NodeManager and non-modifiable by users. Comma separate list of directories that the container should use for logging. -
YARN_CONTAINER_RUNTIME_DOCKER_RUN_OVERRIDE_DISABLE
public static final ApplicationConstants.Environment YARN_CONTAINER_RUNTIME_DOCKER_RUN_OVERRIDE_DISABLE$YARN_CONTAINER_RUNTIME_DOCKER_RUN_OVERRIDE_DISABLE Final, Docker run support ENTRY_POINT. -
YARN_CONTAINER_RUNTIME_YARN_SYSFS_ENABLE
$YARN_CONTAINER_RUNTIME_YARN_SYSFS_ENABLE Final, expose cluster information to container.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
key
-
toString
- Overrides:
toStringin classEnum<ApplicationConstants.Environment>
-
$
Expand the environment variable based on client OS environment variable expansion syntax (e.g. $VAR for Linux and %VAR% for Windows).Note: Use $$() method for cross-platform practice i.e. submit an application from a Windows client to a Linux/Unix server or vice versa.
- Returns:
- expanded environment variable.
-
$$
Expand the environment variable in platform-agnostic syntax. The parameter expansion marker "{{VAR}}" will be replaced with real parameter expansion marker ('%' for Windows and '$' for Linux) by NodeManager on container launch. For example: {{VAR}} will be replaced as $VAR on Linux, and %VAR% on Windows.- Returns:
- expanded environment variable.
-