public class CopyUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
RAW_RESERVED_VIRTUAL_PATH |
static Callable<Boolean> |
testCallable |
| Constructor and Description |
|---|
CopyUtils(String distCpDoAsUser,
HiveConf hiveConf,
org.apache.hadoop.fs.FileSystem destinationFs) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyAndVerify(org.apache.hadoop.fs.Path destRoot,
List<ReplChangeManager.FileInfo> srcFiles,
org.apache.hadoop.fs.Path origSrcPath,
boolean readSrcAsFilesList,
boolean overwrite) |
void |
doCopy(org.apache.hadoop.fs.Path destination,
List<org.apache.hadoop.fs.Path> srcPaths) |
static org.apache.hadoop.fs.Path |
getCopyDestination(ReplChangeManager.FileInfo fileInfo,
org.apache.hadoop.fs.Path destRoot) |
long |
getTotalBytesCopied() |
void |
renameFileCopiedFromCmPath(org.apache.hadoop.fs.Path toPath,
org.apache.hadoop.fs.FileSystem dstFs,
List<ReplChangeManager.FileInfo> srcFiles) |
public static final String RAW_RESERVED_VIRTUAL_PATH
public long getTotalBytesCopied()
public void copyAndVerify(org.apache.hadoop.fs.Path destRoot,
List<ReplChangeManager.FileInfo> srcFiles,
org.apache.hadoop.fs.Path origSrcPath,
boolean readSrcAsFilesList,
boolean overwrite)
throws IOException,
LoginException,
HiveFatalException
public void renameFileCopiedFromCmPath(org.apache.hadoop.fs.Path toPath,
org.apache.hadoop.fs.FileSystem dstFs,
List<ReplChangeManager.FileInfo> srcFiles)
throws IOException
IOExceptionpublic void doCopy(org.apache.hadoop.fs.Path destination,
List<org.apache.hadoop.fs.Path> srcPaths)
throws IOException,
LoginException
IOExceptionLoginExceptionpublic static org.apache.hadoop.fs.Path getCopyDestination(ReplChangeManager.FileInfo fileInfo, org.apache.hadoop.fs.Path destRoot)
Copyright © 2024 The Apache Software Foundation. All rights reserved.