public final class DistributedLoadUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static int |
distributedLoad(AbstractDistributedJobCommand command,
org.apache.commons.cli.CommandLine cl,
java.lang.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 java.lang.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 java.lang.String |
getDistLoadFileSemanticsUsage()
Get usage of distributed load in file semantics.
|
static java.lang.Long |
runDistLoad(AbstractDistributedJobCommand command,
AlluxioURI filePath,
int replication,
int batchSize,
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)
Run the actual distributedLoad command.
|
public static org.apache.commons.cli.Options getDistLoadCommonOptions()
public static org.apache.commons.cli.Options getDistLoadFileSemanticsOptions()
public static java.lang.String getDistLoadCommonUsage()
public static java.lang.String getDistLoadFileSemanticsUsage()
public static int distributedLoad(AbstractDistributedJobCommand command, org.apache.commons.cli.CommandLine cl, java.lang.String pathStr) throws AlluxioException, java.io.IOException
command - Distributed Load command instancecl - CommandLine instance of commandpathStr - path to be loadedAlluxioExceptionjava.io.IOExceptionpublic static java.lang.Long runDistLoad(AbstractDistributedJobCommand command, AlluxioURI filePath, int replication, int batchSize, 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)
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 © 2022. All Rights Reserved.