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() |
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) |
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.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.