public class DistLoadCliRunner extends AbstractCmdRunner
DEFAULT_ACTIVE_JOBS, DEFAULT_FILE_COUNT, mActiveJobs, mFileSystem, mFsContext, mJobMap, mJobMaster, mSubmitted
Constructor and Description |
---|
DistLoadCliRunner(FileSystemContext fsContext,
JobMaster jobMaster)
constructor.
|
Modifier and Type | Method and Description |
---|---|
CmdInfo |
runDistLoad(int batchSize,
AlluxioURI filePath,
int replication,
Set<String> workerSet,
Set<String> excludedWorkerSet,
Set<String> localityIds,
Set<String> excludedLocalityIds,
boolean directCache,
long jobControlId)
Run a DistLoad command.
|
protected void |
setJobConfigAndFileMetrics(List<URIStatus> filePath,
int replication,
Set<String> workerSet,
Set<String> excludedWorkerSet,
Set<String> localityIds,
Set<String> excludedLocalityIds,
boolean directCache,
CmdRunAttempt attempt) |
waitForCmdJob
public DistLoadCliRunner(FileSystemContext fsContext, JobMaster jobMaster)
fsContext
- jobMaster
- public CmdInfo runDistLoad(int batchSize, AlluxioURI filePath, int replication, Set<String> workerSet, Set<String> excludedWorkerSet, Set<String> localityIds, Set<String> excludedLocalityIds, boolean directCache, long jobControlId) throws IOException
batchSize
- size for batched jobsfilePath
- The AlluxioURI
path to load into Alluxio memoryreplication
- Number of block replicas of each loaded fileworkerSet
- A set of worker hosts to load dataexcludedWorkerSet
- A set of worker hosts can not to load datalocalityIds
- The locality identify setexcludedLocalityIds
- A set of worker locality identify can not to load datadirectCache
- Use direct cache request or cache through readjobControlId
- THe parent level job control IDIOException
Copyright © 2023. All Rights Reserved.