public static enum ApplicationConstants.Environment extends Enum<ApplicationConstants.Environment>
Enum Constant and Description |
---|
APP_CLASSPATH
$APP_CLASSPATH
|
CLASSPATH
$CLASSPATH
|
CLASSPATH_PREPEND_DISTCACHE
$CLASSPATH_PREPEND_DISTCACHE
Private, Windows specific
|
CONTAINER_ID
$CONTAINER_ID
Final, exported by NodeManager and non-modifiable by users.
|
HADOOP_COMMON_HOME
$HADOOP_COMMON_HOME
|
HADOOP_CONF_DIR
$HADOOP_CONF_DIR
Final, non-modifiable.
|
HADOOP_HDFS_HOME
$HADOOP_HDFS_HOME
|
HADOOP_YARN_HOME
$HADOOP_YARN_HOME
|
HOME
$HOME
Final, non-modifiable.
|
JAVA_HOME
$JAVA_HOME
|
LD_LIBRARY_PATH
$LD_LIBRARY_PATH
|
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.
|
LOCALIZATION_COUNTERS
$LOCALIZATION_COUNTERS
Since NM does not RPC Container JVM's we pass Localization counter
vector as an environment variable
|
LOG_DIRS
$LOG_DIRS
Final, exported by NodeManager and non-modifiable by users.
|
LOGNAME
$LOGNAME
Final, non-modifiable.
|
MALLOC_ARENA_MAX
$MALLOC_ARENA_MAX
|
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.
|
PATH
$PATH
|
PWD
$PWD
Final, non-modifiable.
|
SHELL
$SHELL
|
USER
$USER
Final, non-modifiable.
|
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.
|
Modifier and Type | Method and Description |
---|---|
String |
$()
Expand the environment variable based on client OS environment variable
expansion syntax (e.g.
|
String |
$$()
Expand the environment variable in platform-agnostic syntax.
|
String |
key() |
String |
toString() |
static ApplicationConstants.Environment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApplicationConstants.Environment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApplicationConstants.Environment USER
public static final ApplicationConstants.Environment LOGNAME
public static final ApplicationConstants.Environment HOME
public static final ApplicationConstants.Environment PWD
public static final ApplicationConstants.Environment PATH
public static final ApplicationConstants.Environment SHELL
public static final ApplicationConstants.Environment JAVA_HOME
public static final ApplicationConstants.Environment CLASSPATH
public static final ApplicationConstants.Environment APP_CLASSPATH
public static final ApplicationConstants.Environment LD_LIBRARY_PATH
public static final ApplicationConstants.Environment HADOOP_CONF_DIR
public static final ApplicationConstants.Environment HADOOP_COMMON_HOME
public static final ApplicationConstants.Environment HADOOP_HDFS_HOME
public static final ApplicationConstants.Environment MALLOC_ARENA_MAX
public static final ApplicationConstants.Environment HADOOP_YARN_HOME
@InterfaceAudience.Private public static final ApplicationConstants.Environment CLASSPATH_PREPEND_DISTCACHE
public static final ApplicationConstants.Environment LOCALIZATION_COUNTERS
public static final ApplicationConstants.Environment CONTAINER_ID
public static final ApplicationConstants.Environment NM_HOST
public static final ApplicationConstants.Environment NM_HTTP_PORT
public static final ApplicationConstants.Environment NM_PORT
public static final ApplicationConstants.Environment LOCAL_DIRS
public static final ApplicationConstants.Environment LOCAL_USER_DIRS
public static final ApplicationConstants.Environment LOG_DIRS
public static final ApplicationConstants.Environment YARN_CONTAINER_RUNTIME_DOCKER_RUN_OVERRIDE_DISABLE
public static final ApplicationConstants.Environment YARN_CONTAINER_RUNTIME_YARN_SYSFS_ENABLE
public static ApplicationConstants.Environment[] values()
for (ApplicationConstants.Environment c : ApplicationConstants.Environment.values()) System.out.println(c);
public static ApplicationConstants.Environment valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String key()
public String toString()
toString
in class Enum<ApplicationConstants.Environment>
public String $()
Note: Use $$() method for cross-platform practice i.e. submit an application from a Windows client to a Linux/Unix server or vice versa.
@InterfaceAudience.Public @InterfaceStability.Unstable public String $$()
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.