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,
java.util.Set<java.lang.String> workerSet,
java.util.Set<java.lang.String> excludedWorkerSet,
java.util.Set<java.lang.String> localityIds,
java.util.Set<java.lang.String> excludedLocalityIds,
boolean directCache,
long jobControlId)
Run a DistLoad command.
|
protected void |
setJobConfigAndFileMetrics(java.util.List<URIStatus> filePath,
int replication,
java.util.Set<java.lang.String> workerSet,
java.util.Set<java.lang.String> excludedWorkerSet,
java.util.Set<java.lang.String> localityIds,
java.util.Set<java.lang.String> excludedLocalityIds,
boolean directCache,
CmdRunAttempt attempt) |
waitForCmdJobpublic DistLoadCliRunner(FileSystemContext fsContext, JobMaster jobMaster)
fsContext - jobMaster - public CmdInfo runDistLoad(int batchSize, AlluxioURI filePath, int replication, java.util.Set<java.lang.String> workerSet, java.util.Set<java.lang.String> excludedWorkerSet, java.util.Set<java.lang.String> localityIds, java.util.Set<java.lang.String> excludedLocalityIds, boolean directCache, long jobControlId) throws java.io.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 IDjava.io.IOExceptionprotected void setJobConfigAndFileMetrics(java.util.List<URIStatus> filePath, int replication, java.util.Set<java.lang.String> workerSet, java.util.Set<java.lang.String> excludedWorkerSet, java.util.Set<java.lang.String> localityIds, java.util.Set<java.lang.String> excludedLocalityIds, boolean directCache, CmdRunAttempt attempt)
Copyright © 2022. All Rights Reserved.