public final class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static void |
addS3Credentials(org.apache.hadoop.conf.Configuration conf)
Add S3 keys to the given Hadoop Configuration object if the user has specified them using
System properties, and they're not already set.
|
static org.apache.hadoop.fs.Path |
getHDFSPath(String path) |
static String |
getPathWithoutScheme(org.apache.hadoop.fs.Path path) |
static String |
getTachyonFileName(String path) |
static String |
toStringHadoopFileSplit(org.apache.hadoop.mapred.FileSplit fs) |
static String |
toStringHadoopFileStatus(org.apache.hadoop.fs.FileStatus fs) |
static String |
toStringHadoopInputSplit(org.apache.hadoop.mapred.InputSplit is) |
public static void addS3Credentials(org.apache.hadoop.conf.Configuration conf)
public static org.apache.hadoop.fs.Path getHDFSPath(String path)
public static String getPathWithoutScheme(org.apache.hadoop.fs.Path path)
public static String toStringHadoopFileSplit(org.apache.hadoop.mapred.FileSplit fs)
public static String toStringHadoopFileStatus(org.apache.hadoop.fs.FileStatus fs)
public static String toStringHadoopInputSplit(org.apache.hadoop.mapred.InputSplit is)
Copyright © 2014. All rights reserved.