public class MigrateCliRunner extends AbstractCmdRunner
DEFAULT_ACTIVE_JOBS, DEFAULT_FILE_COUNT, mActiveJobs, mFileSystem, mFsContext, mJobMap, mJobMaster, mSubmitted| Constructor and Description |
|---|
MigrateCliRunner(FileSystemContext fsContext,
JobMaster jobMaster)
constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CmdInfo |
runDistCp(AlluxioURI srcPath,
AlluxioURI dstPath,
boolean overwrite,
int batchSize,
long jobControlId)
Run a DistCp command.
|
void |
setJobConfigAndFileMetrics(java.util.List<Pair<java.lang.String,java.lang.String>> filePath,
boolean overwrite,
WriteType writeType,
CmdRunAttempt attempt)
Create a JobConfig and set file count and size for the Migrate job.
|
waitForCmdJobpublic MigrateCliRunner(FileSystemContext fsContext, JobMaster jobMaster)
fsContext - fs contextjobMaster - job masterpublic CmdInfo runDistCp(AlluxioURI srcPath, AlluxioURI dstPath, boolean overwrite, int batchSize, long jobControlId) throws java.io.IOException
srcPath - source pathdstPath - destination pathoverwrite - overwrite file or notbatchSize - batch size to run at one timejobControlId - the parent id or jobControlIdjava.io.IOExceptionpublic void setJobConfigAndFileMetrics(java.util.List<Pair<java.lang.String,java.lang.String>> filePath, boolean overwrite, WriteType writeType, CmdRunAttempt attempt)
filePath - file paths to do distCpoverwrite - overwrite destinationwriteType - write typeattempt - each child job attemptCopyright © 2023. All Rights Reserved.