public class HDFSTools extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
HDFSTools() |
| Modifier and Type | Method and Description |
|---|---|
static void |
decompressFile(org.apache.hadoop.fs.FileSystem fs,
String inFile,
String outFile,
boolean deletePrevious) |
static void |
decompressPath(org.apache.hadoop.fs.FileSystem fs,
String in,
String out,
String compressedFileSuffix,
boolean deletePrevious) |
static List<org.apache.hadoop.fs.Path> |
getAllFilePaths(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.PathFilter filter) |
static long |
getFileSize(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.PathFilter filter) |
static org.apache.hadoop.fs.Path |
getOutputsFinalJob(org.apache.hadoop.fs.FileSystem fs,
String output) |
static boolean |
globDelete(org.apache.hadoop.fs.FileSystem fs,
String path,
boolean recursive) |
public static long getFileSize(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.PathFilter filter)
throws IOException
IOExceptionpublic static List<org.apache.hadoop.fs.Path> getAllFilePaths(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.PathFilter filter) throws IOException
IOExceptionpublic static org.apache.hadoop.fs.Path getOutputsFinalJob(org.apache.hadoop.fs.FileSystem fs,
String output)
throws IOException
IOExceptionpublic static void decompressPath(org.apache.hadoop.fs.FileSystem fs,
String in,
String out,
String compressedFileSuffix,
boolean deletePrevious)
throws IOException
IOExceptionpublic static void decompressFile(org.apache.hadoop.fs.FileSystem fs,
String inFile,
String outFile,
boolean deletePrevious)
throws IOException
IOExceptionpublic static boolean globDelete(org.apache.hadoop.fs.FileSystem fs,
String path,
boolean recursive)
throws IOException
IOExceptionCopyright © 2012–2016. All rights reserved.