public class HadoopUtils extends Object
| 构造器和说明 |
|---|
HadoopUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.apache.hadoop.conf.Configuration |
getHadoopConfiguration(org.apache.flink.configuration.Configuration flinkConfiguration) |
static boolean |
hasHDFSDelegationToken()
Indicates whether the current user has an HDFS delegation token.
|
static boolean |
isCredentialsConfigured(org.apache.hadoop.security.UserGroupInformation ugi,
boolean useTicketCache) |
static boolean |
isMaxHadoopVersion(int major,
int minor)
Checks if the Hadoop dependency is at most the given version.
|
static boolean |
isMinHadoopVersion(int major,
int minor)
Checks if the Hadoop dependency is at least the given version.
|
public static org.apache.hadoop.conf.Configuration getHadoopConfiguration(org.apache.flink.configuration.Configuration flinkConfiguration)
public static boolean isCredentialsConfigured(org.apache.hadoop.security.UserGroupInformation ugi,
boolean useTicketCache)
throws Exception
Exceptionpublic static boolean hasHDFSDelegationToken()
throws Exception
Exceptionpublic static boolean isMinHadoopVersion(int major,
int minor)
throws org.apache.flink.util.FlinkRuntimeException
org.apache.flink.util.FlinkRuntimeExceptionpublic static boolean isMaxHadoopVersion(int major,
int minor)
throws org.apache.flink.util.FlinkRuntimeException
org.apache.flink.util.FlinkRuntimeExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.