public interface SparkCommonPipelineOptions extends PipelineOptions, StreamingOptions, ApplicationNameOptions, FileStagingOptions
PipelineOptions
handles Spark execution-related configurations, such as the
master address, and other user-related knobs.Modifier and Type | Interface and Description |
---|---|
static class |
SparkCommonPipelineOptions.TmpCheckpointDirFactory
Returns the default checkpoint directory of /tmp/${job.name}.
|
PipelineOptions.AtomicLongFactory, PipelineOptions.CheckEnabled, PipelineOptions.DirectRunner, PipelineOptions.JobNameFactory, PipelineOptions.UserAgentFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_MASTER_URL |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCheckpointDir() |
java.lang.Boolean |
getEnableSparkMetricSinks() |
java.lang.String |
getSparkMaster() |
java.lang.String |
getStorageLevel() |
static void |
prepareFilesToStage(SparkCommonPipelineOptions options)
Classpath contains non jar files (eg.
|
void |
setCheckpointDir(java.lang.String checkpointDir) |
void |
setEnableSparkMetricSinks(java.lang.Boolean enableSparkMetricSinks) |
void |
setSparkMaster(java.lang.String master) |
void |
setStorageLevel(java.lang.String storageLevel) |
isStreaming, setStreaming
getAppName, setAppName
as, getJobName, getOptionsId, getRunner, getStableUniqueNames, getTempLocation, getUserAgent, outputRuntimeOptions, setJobName, setOptionsId, setRunner, setStableUniqueNames, setTempLocation, setUserAgent
populateDisplayData
getFilesToStage, setFilesToStage
static final java.lang.String DEFAULT_MASTER_URL
@Default.String(value="local[4]") java.lang.String getSparkMaster()
void setSparkMaster(java.lang.String master)
@Default.InstanceFactory(value=SparkCommonPipelineOptions.TmpCheckpointDirFactory.class) java.lang.String getCheckpointDir()
void setCheckpointDir(java.lang.String checkpointDir)
@Default.String(value="MEMORY_ONLY") java.lang.String getStorageLevel()
void setStorageLevel(java.lang.String storageLevel)
@Default.Boolean(value=true) java.lang.Boolean getEnableSparkMetricSinks()
void setEnableSparkMetricSinks(java.lang.Boolean enableSparkMetricSinks)
@Internal static void prepareFilesToStage(SparkCommonPipelineOptions options)
SparkContext
can handle
this when running in local master, it's better not to include non-jars files in classpath.