public class HadoopFileUtils extends Object
| Constructor and Description |
|---|
HadoopFileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
copyFromHdfsToLocal(HadoopProperties properties,
String hdfsPath,
String localDirPath) |
static String |
copyFromLocalToHdfs(org.apache.hadoop.conf.Configuration conf,
String localFilePath,
String path) |
static String |
copyFromLocalToHdfs(HadoopProperties properties,
String localFilePath,
String path) |
static boolean |
deleteHdfsFile(HadoopProperties properties,
String path) |
static String |
moveFromHdfsToLocal(HadoopProperties properties,
String path,
String localDirPath) |
static String |
moveFromLocalToHdfs(HadoopProperties properties,
String localFilePath,
String path) |
static boolean |
pathExistsOnHdfs(HadoopProperties props,
String path) |
static void |
printFromHdfs(HadoopProperties properties,
String hdfsPath) |
static String |
readFromHdfs(HadoopProperties properties,
String hdfsPath) |
static void |
setHadoopUsername(String username) |
static void |
writeToHdfs(HadoopProperties properties,
String content,
String hdfsPath) |
public static boolean pathExistsOnHdfs(HadoopProperties props, String path)
public static String copyFromHdfsToLocal(HadoopProperties properties, String hdfsPath, String localDirPath)
public static String readFromHdfs(HadoopProperties properties, String hdfsPath)
public static void writeToHdfs(HadoopProperties properties, String content, String hdfsPath)
public static void printFromHdfs(HadoopProperties properties, String hdfsPath)
public static String copyFromLocalToHdfs(HadoopProperties properties, String localFilePath, String path)
public static String copyFromLocalToHdfs(org.apache.hadoop.conf.Configuration conf, String localFilePath, String path)
public static String moveFromLocalToHdfs(HadoopProperties properties, String localFilePath, String path)
public static String moveFromHdfsToLocal(HadoopProperties properties, String path, String localDirPath)
public static void setHadoopUsername(String username)
public static boolean deleteHdfsFile(HadoopProperties properties, String path)
Copyright © 2017. All rights reserved.