@ThreadSafe
public final class HadoopUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addSwiftCredentials(org.apache.hadoop.conf.Configuration configuration)
Adds Swift keys to the given Hadoop Configuration object if the user has specified them using
System properties, and they're not already set.
|
static java.lang.String |
getAlluxioFileName(java.lang.String path)
Given a
String path, returns an equivalent Alluxio path. |
static java.lang.String |
getPathWithoutScheme(org.apache.hadoop.fs.Path path)
Given a
Path path, it returns the path component of its URI, which has the form
scheme://authority/path. |
static AlluxioConfiguration |
toAlluxioConf(org.apache.hadoop.conf.Configuration conf) |
static org.apache.hadoop.fs.Path |
toPath(AlluxioURI alluxioURI) |
static java.lang.String |
toStringHadoopFileSplit(org.apache.hadoop.mapred.FileSplit fs)
Returns a string representation of a Hadoop
FileSplit. |
static java.lang.String |
toStringHadoopFileStatus(org.apache.hadoop.fs.FileStatus fs)
Returns a string representation of a Hadoop
FileStatus. |
public static java.lang.String getPathWithoutScheme(org.apache.hadoop.fs.Path path)
Path path, it returns the path component of its URI, which has the form
scheme://authority/path.path - an HDFS PathPath URIpublic static java.lang.String getAlluxioFileName(java.lang.String path)
String path, returns an equivalent Alluxio path.path - the path to parsepublic static java.lang.String toStringHadoopFileSplit(org.apache.hadoop.mapred.FileSplit fs)
FileSplit.fs - Hadoop FileSplitpublic static java.lang.String toStringHadoopFileStatus(org.apache.hadoop.fs.FileStatus fs)
FileStatus.fs - Hadoop FileStatuspublic static void addSwiftCredentials(org.apache.hadoop.conf.Configuration configuration)
alluxio.underfs.hdfs.HdfsUnderFileSystemUtils, to
prevent the module alluxio-core-client-hdfs from depending on the module alluxio-underfs.configuration - Hadoop configurationpublic static org.apache.hadoop.fs.Path toPath(AlluxioURI alluxioURI)
alluxioURI - Alluxio uripublic static AlluxioConfiguration toAlluxioConf(org.apache.hadoop.conf.Configuration conf)
conf - Hadoop confCopyright © 2023. All Rights Reserved.