public class HadoopUtils extends Object
| Constructor and Description |
|---|
HadoopUtils() |
| Modifier and Type | Method and Description |
|---|---|
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 |
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 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.