Package org.apache.beam.runners.flink
Interface FlinkPipelineOptions
- All Superinterfaces:
ApplicationNameOptions,FileStagingOptions,HasDisplayData,PipelineOptions,StreamingOptions,VersionDependentFlinkPipelineOptions
public interface FlinkPipelineOptions
extends PipelineOptions, ApplicationNameOptions, StreamingOptions, FileStagingOptions, VersionDependentFlinkPipelineOptions
Options which can be used to configure the Flink Runner.
Avoid using `org.apache.flink.*` members below. This allows including the flink runner without requiring flink on the classpath (e.g. to use with the direct runner).
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classMaximum bundle size factory.static classMaximum bundle time factory.Nested classes/interfaces inherited from interface org.apache.beam.sdk.options.PipelineOptions
PipelineOptions.AtomicLongFactory, PipelineOptions.CheckEnabled, PipelineOptions.DirectRunner, PipelineOptions.JobNameFactory, PipelineOptions.UserAgentFactory -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic FlinkPipelineOptionsdefaults()booleanbooleanThe url of the Flink JobManager on which to execute pipelines.booleanintintClass<? extends FlinkStateBackendFactory> Deprecated.Please use setStateBackend below.booleanEnables or disables externalized checkpoints.voidsetAllowNonRestoredState(Boolean allowNonRestoredState) voidsetAttachedMode(boolean attachedMode) voidsetAutoBalanceWriteFilesShardingEnabled(Boolean autoBalanceWriteFilesShardingEnabled) voidsetAutoWatermarkInterval(Long interval) voidsetCheckpointingInterval(Long interval) voidsetCheckpointingMode(String mode) voidsetCheckpointTimeoutMillis(Long checkpointTimeoutMillis) voidsetDisableMetrics(Boolean disableMetrics) voidsetEnableStableInputDrain(Boolean enableStableInputDrain) voidsetExecutionModeForBatch(String executionMode) voidsetExecutionRetryDelay(Long delay) voidsetExternalizedCheckpointsEnabled(Boolean externalCheckpoints) voidsetFailOnCheckpointingErrors(Boolean failOnCheckpointingErrors) voidsetFasterCopy(Boolean fasterCopy) voidsetFileInputSplitMaxSizeMB(Long fileInputSplitMaxSizeMB) voidsetFinishBundleBeforeCheckpointing(boolean finishBundleBeforeCheckpointing) voidsetFlinkConfDir(String confDir) voidsetFlinkMaster(String value) voidsetForceSlotSharingGroup(Boolean enableStableInputDrain) voidsetForceUnalignedCheckpointEnabled(boolean forceUnalignedCheckpointEnabled) voidsetJobCheckIntervalInSecs(int seconds) voidsetLatencyTrackingInterval(Long interval) voidsetMaxBundleSize(Long size) voidsetMaxBundleTimeMills(Long time) voidsetMaxParallelism(Integer value) voidsetMinPauseBetweenCheckpoints(Long minPauseInterval) voidsetNumberOfExecutionRetries(Integer retries) voidsetNumConcurrentCheckpoints(int maxConcurrentCheckpoints) voidsetObjectReuse(Boolean reuse) voidsetOperatorChaining(Boolean chaining) voidsetParallelism(Integer value) voidsetReIterableGroupByKeyResult(Boolean reIterableGroupByKeyResult) voidsetReportCheckpointDuration(String metricNamespace) voidsetRetainExternalizedCheckpointsOnCancellation(Boolean retainOnCancellation) voidsetSavepointPath(String path) voidsetShutdownSourcesAfterIdleMs(Long timeoutMs) voidsetStateBackend(String stateBackend) voidsetStateBackendFactory(Class<? extends FlinkStateBackendFactory> stateBackendFactory) Deprecated.Please use setStateBackend below.voidvoidsetUnalignedCheckpointEnabled(boolean unalignedCheckpointEnabled) Methods inherited from interface org.apache.beam.sdk.options.ApplicationNameOptions
getAppName, setAppNameMethods inherited from interface org.apache.beam.sdk.options.FileStagingOptions
getFilesToStage, setFilesToStageMethods inherited from interface org.apache.beam.sdk.transforms.display.HasDisplayData
populateDisplayDataMethods inherited from interface org.apache.beam.sdk.options.PipelineOptions
as, getJobName, getOptionsId, getRunner, getStableUniqueNames, getTempLocation, getUserAgent, outputRuntimeOptions, revision, setJobName, setOptionsId, setRunner, setStableUniqueNames, setTempLocation, setUserAgentMethods inherited from interface org.apache.beam.sdk.options.StreamingOptions
getUpdateCompatibilityVersion, isStreaming, setStreaming, setUpdateCompatibilityVersionMethods inherited from interface org.apache.beam.runners.flink.VersionDependentFlinkPipelineOptions
getUseDataStreamForBatch, setUseDataStreamForBatch
-
Field Details
-
AUTO
- See Also:
-
PIPELINED
- See Also:
-
EXACTLY_ONCE
- See Also:
-
-
Method Details
-
getFlinkMaster
The url of the Flink JobManager on which to execute pipelines. This can either be the address of a cluster JobManager, in the form "host:port" or one of the special Strings "[local]", "[collection]" or "[auto]". "[local]" will start a local Flink Cluster in the JVM, "[collection]" will execute the pipeline on Java Collections while "[auto]" will let the system decide where to execute the pipeline based on the environment. -
setFlinkMaster
-
getParallelism
-
setParallelism
-
getMaxParallelism
-
setMaxParallelism
-
getCheckpointingInterval
-
setCheckpointingInterval
-
getCheckpointingMode
-
setCheckpointingMode
-
getCheckpointTimeoutMillis
-
setCheckpointTimeoutMillis
-
getMinPauseBetweenCheckpoints
-
setMinPauseBetweenCheckpoints
-
getNumConcurrentCheckpoints
-
setNumConcurrentCheckpoints
void setNumConcurrentCheckpoints(int maxConcurrentCheckpoints) -
getFailOnCheckpointingErrors
-
setFailOnCheckpointingErrors
-
getFinishBundleBeforeCheckpointing
-
setFinishBundleBeforeCheckpointing
void setFinishBundleBeforeCheckpointing(boolean finishBundleBeforeCheckpointing) -
getUnalignedCheckpointEnabled
-
setUnalignedCheckpointEnabled
void setUnalignedCheckpointEnabled(boolean unalignedCheckpointEnabled) -
getForceUnalignedCheckpointEnabled
-
setForceUnalignedCheckpointEnabled
void setForceUnalignedCheckpointEnabled(boolean forceUnalignedCheckpointEnabled) -
getShutdownSourcesAfterIdleMs
-
setShutdownSourcesAfterIdleMs
-
getNumberOfExecutionRetries
-
setNumberOfExecutionRetries
-
getJobCheckIntervalInSecs
-
setJobCheckIntervalInSecs
void setJobCheckIntervalInSecs(int seconds) -
getAttachedMode
-
setAttachedMode
void setAttachedMode(boolean attachedMode) -
getExecutionRetryDelay
-
setExecutionRetryDelay
-
getObjectReuse
-
setObjectReuse
-
getOperatorChaining
-
setOperatorChaining
-
getStateBackendFactory
Deprecated.Please use setStateBackend below.State backend to store Beam's state during computation. Note: Only applicable when executing in streaming mode. -
setStateBackendFactory
@Deprecated void setStateBackendFactory(Class<? extends FlinkStateBackendFactory> stateBackendFactory) Deprecated.Please use setStateBackend below. -
setStateBackend
-
getStateBackend
String getStateBackend() -
setStateBackendStoragePath
-
getStateBackendStoragePath
String getStateBackendStoragePath() -
getDisableMetrics
-
setDisableMetrics
-
isExternalizedCheckpointsEnabled
Enables or disables externalized checkpoints. -
setExternalizedCheckpointsEnabled
-
getRetainExternalizedCheckpointsOnCancellation
-
setRetainExternalizedCheckpointsOnCancellation
-
getMaxBundleSize
-
setMaxBundleSize
-
getMaxBundleTimeMills
-
setMaxBundleTimeMills
-
getLatencyTrackingInterval
-
setLatencyTrackingInterval
-
getAutoWatermarkInterval
Long getAutoWatermarkInterval() -
setAutoWatermarkInterval
-
getExecutionModeForBatch
-
setExecutionModeForBatch
-
getSavepointPath
String getSavepointPath() -
setSavepointPath
-
getAllowNonRestoredState
-
setAllowNonRestoredState
-
isAutoBalanceWriteFilesShardingEnabled
-
setAutoBalanceWriteFilesShardingEnabled
-
getReportCheckpointDuration
String getReportCheckpointDuration() -
setReportCheckpointDuration
-
getReIterableGroupByKeyResult
-
setReIterableGroupByKeyResult
-
getFasterCopy
-
setFasterCopy
-
getFlinkConfDir
String getFlinkConfDir() -
setFlinkConfDir
-
getFileInputSplitMaxSizeMB
-
setFileInputSplitMaxSizeMB
-
getEnableStableInputDrain
-
setEnableStableInputDrain
-
getForceSlotSharingGroup
-
setForceSlotSharingGroup
-
defaults
-