public final class Utils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
KEYTAB_FILE_NAME
Keytab file name populated in YARN container.
|
static String |
KRB5_FILE_NAME
KRB5 file name populated in YARN container for secure IT run.
|
static int |
REMOTE_RESOURCES_FETCH_NUM_RETRY
Number of total retries to fetch the remote resources after uploaded in case of FileNotFoundException.
|
static int |
REMOTE_RESOURCES_FETCH_WAIT_IN_MILLI
Time to wait in milliseconds between each remote resources fetch in case of FileNotFoundException.
|
static String |
YARN_SITE_FILE_NAME
Yarn site xml file name populated in YARN container for secure IT run.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
addToEnvironment(Map<String,String> environment,
String variable,
String value)
Copied method from org.apache.hadoop.yarn.util.Apps.
|
static void |
deleteApplicationFiles(Map<String,String> env)
Deletes the YARN application files, e.g., Flink binaries, libraries, etc., from the remote
filesystem.
|
static void |
setTokensFor(org.apache.hadoop.yarn.api.records.ContainerLaunchContext amContainer,
List<org.apache.hadoop.fs.Path> paths,
org.apache.hadoop.conf.Configuration conf) |
static void |
setupYarnClassPath(org.apache.hadoop.conf.Configuration conf,
Map<String,String> appMasterEnv) |
public static final String KEYTAB_FILE_NAME
public static final String KRB5_FILE_NAME
public static final String YARN_SITE_FILE_NAME
public static final int REMOTE_RESOURCES_FETCH_NUM_RETRY
public static final int REMOTE_RESOURCES_FETCH_WAIT_IN_MILLI
public static void setupYarnClassPath(org.apache.hadoop.conf.Configuration conf,
Map<String,String> appMasterEnv)
public static void deleteApplicationFiles(Map<String,String> env)
env - The environment variables.public static void setTokensFor(org.apache.hadoop.yarn.api.records.ContainerLaunchContext amContainer,
List<org.apache.hadoop.fs.Path> paths,
org.apache.hadoop.conf.Configuration conf)
throws IOException
IOExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.