public final class DistributedLoadUtils extends Object
Modifier and Type | Method and Description |
---|---|
static int |
distributedLoad(AbstractDistributedJobCommand command,
org.apache.commons.cli.CommandLine cl,
String pathStr)
Run the actual distributedLoad command.
|
static org.apache.commons.cli.Options |
getDistLoadCommonOptions()
Get the general options that distributed load needs to use.
|
static String |
getDistLoadCommonUsage()
Get the general usage of distributed load.
|
static org.apache.commons.cli.Options |
getDistLoadFileSemanticsOptions()
Get the options of distributed load needs to use in file semantics.
|
static String |
getDistLoadFileSemanticsUsage()
Get usage of distributed load in file semantics.
|
static long |
runDistLoad(AbstractDistributedJobCommand command,
AlluxioURI filePath,
int replication,
int batchSize,
Set<String> workerSet,
Set<String> excludedWorkerSet,
Set<String> localityIds,
Set<String> excludedLocalityIds,
boolean directCache)
Run the actual distributedLoad command.
|
public static org.apache.commons.cli.Options getDistLoadCommonOptions()
public static org.apache.commons.cli.Options getDistLoadFileSemanticsOptions()
public static String getDistLoadCommonUsage()
public static String getDistLoadFileSemanticsUsage()
public static int distributedLoad(AbstractDistributedJobCommand command, org.apache.commons.cli.CommandLine cl, String pathStr) throws AlluxioException, IOException
command
- Distributed Load command instancecl
- CommandLine instance of commandpathStr
- path to be loadedAlluxioException
IOException
public static long runDistLoad(AbstractDistributedJobCommand command, AlluxioURI filePath, int replication, int batchSize, Set<String> workerSet, Set<String> excludedWorkerSet, Set<String> localityIds, Set<String> excludedLocalityIds, boolean directCache)
command
- Distributed Load command instancefilePath
- file path to loadreplication
- Number of block replicas of each loaded filebatchSize
- Batch size for loadingworkerSet
- 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 readCopyright © 2023. All Rights Reserved.