public final class FileUtil
extends java.lang.Object
Constructor and Description |
---|
FileUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
copyFile(Configuration job,
FileStatus fileStatus) |
static java.lang.String |
copyFile(Configuration conf,
Path inFile)
Copies a file to the local file system given its path.
|
static java.lang.String |
copyFileSplit(Configuration conf,
FileSplit split)
Copies a part of a file from a remote file system (e.g., HDFS) to a local
file.
|
static Path |
writePathsToFile(OperationsParams params,
Path[] paths)
Writes paths to a file where each path is a line.
|
public static java.lang.String copyFile(Configuration job, FileStatus fileStatus) throws java.io.IOException
java.io.IOException
public static java.lang.String copyFileSplit(Configuration conf, FileSplit split) throws java.io.IOException
conf
- split
- java.io.IOException
public static java.lang.String copyFile(Configuration conf, Path inFile) throws java.io.IOException
conf
- inFile
- java.io.IOException
public static Path writePathsToFile(OperationsParams params, Path[] paths)
paths
-