@ThreadSafe public final class HadoopUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getAlluxioFileName(String path)
Given a
String path, returns an equivalent Alluxio path. |
static 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 String |
toStringHadoopFileSplit(org.apache.hadoop.mapred.FileSplit fs)
Returns a string representation of a Hadoop
FileSplit . |
static String |
toStringHadoopFileStatus(org.apache.hadoop.fs.FileStatus fs)
Returns a string representation of a Hadoop
FileStatus . |
public static 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 Path
Path
URIpublic static String getAlluxioFileName(String path)
String
path, returns an equivalent Alluxio path.path
- the path to parsepublic static String toStringHadoopFileSplit(org.apache.hadoop.mapred.FileSplit fs)
FileSplit
.fs
- Hadoop FileSplit
public static String toStringHadoopFileStatus(org.apache.hadoop.fs.FileStatus fs)
FileStatus
.fs
- Hadoop FileStatus
public 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.