public class SparkJobConfig extends BaseSparkJobConfig
COLT_JAR, DEFAULT_HDFS_PORT, DEFAULT_MESOS_MASTER_PORT, DEFAULT_SPARK_MASTER_PORT, DISTRIBUTED_WEKA_BASE_JAR, DISTRIBUTED_WEKA_SPARK_JAR, HADOOP_FS_DEFAULT_NAME, JCOMMON_JAR, JFREECHART_JAR, LA4J_JAR, MASTER_HOST, MASTER_PORT, OPEN_CSV_JAR, SPARK_HOME_DIR, TDIGEST_JAR
Constructor and Description |
---|
SparkJobConfig() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInputFile()
Get the path to the file to process by this job.
|
java.lang.String |
getMaxInputSlices()
Get the maximum number of input splits (partitions) to create from the
input file.
|
java.lang.String |
getMinInputSlices()
Get the minimum number of input splits to create from the input file.
|
java.lang.String[] |
getOptions() |
java.lang.String |
getOutputDir()
Get the output directory for this job
|
java.lang.String |
inputFileTipText()
Tip text for this property
|
java.util.Enumeration<Option> |
listOptions() |
java.lang.String |
maxInputSlicesTipText() |
java.lang.String |
minInputSlicesTipText()
Tip text for this property
|
java.lang.String |
outputDirTipText()
Tip text for this property
|
void |
setInputFile(java.lang.String filePath)
Set the path to the file to process by this job.
|
void |
setMaxInputSlices(java.lang.String max)
Set the maximum number of input splits (partitions) to create from the
input file.
|
void |
setMinInputSlices(java.lang.String slices)
Set the minimum number of input splits (partitions) to create from the
input file.
|
void |
setOptions(java.lang.String[] options) |
void |
setOutputDir(java.lang.String dir)
Set the output directory for this job
|
addWekaLibrariesToSparkContext, availableClusterMemoryTipText, getAvailableClusterMemory, getBaseSparkContext, getDefaultPortForMaster, getInMemoryDataOverheadFactor, getMasterHost, getMasterPort, getMemoryFraction, getPathToWekaJar, getSparkHomeDirectory, getWekaPackages, inMemoryDataOverheadFactorTipText, masterHostTipText, masterPortTipText, memoryFractionTipText, pathToWekaJarTipText, setAvailableClusterMemory, setInMemoryDataOverheadFactor, setMasterHost, setMasterPort, setMemoryFraction, setPathToWekaJar, setSparkHomeDirectory, setWekaPackages, sparkHomeDirectoryTipText, wekaPackagesTipText
public java.util.Enumeration<Option> listOptions()
listOptions
in interface OptionHandler
listOptions
in class BaseSparkJobConfig
public java.lang.String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class BaseSparkJobConfig
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface OptionHandler
setOptions
in class BaseSparkJobConfig
java.lang.Exception
public java.lang.String inputFileTipText()
public java.lang.String getInputFile()
public void setInputFile(java.lang.String filePath)
filePath
- the path to the file to process by the jobpublic java.lang.String minInputSlicesTipText()
public java.lang.String getMinInputSlices()
public void setMinInputSlices(java.lang.String slices)
slices
- the number of splits to createpublic java.lang.String maxInputSlicesTipText()
public java.lang.String getMaxInputSlices()
public void setMaxInputSlices(java.lang.String max)
max
- the maximum number of splits/partitions to create from an input
file.public java.lang.String outputDirTipText()
public java.lang.String getOutputDir()
public void setOutputDir(java.lang.String dir)
dir
- the output directory for this job