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(List<Pair<String,String>> filePath,
boolean overwrite,
WriteType writeType,
CmdRunAttempt attempt)
Create a JobConfig and set file count and size for the Migrate job.
|
waitForCmdJob
public MigrateCliRunner(FileSystemContext fsContext, JobMaster jobMaster)
fsContext
- fs contextjobMaster
- job masterpublic CmdInfo runDistCp(AlluxioURI srcPath, AlluxioURI dstPath, boolean overwrite, int batchSize, long jobControlId) throws IOException
srcPath
- source pathdstPath
- destination pathoverwrite
- overwrite file or notbatchSize
- batch size to run at one timejobControlId
- the parent id or jobControlIdIOException
public void setJobConfigAndFileMetrics(List<Pair<String,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.