Configuration Properties
The following list are the properties that you can use to fine-tune Spark Structured Streaming applications.
You can set them in a SparkSession upon instantiation using config method.
1 2 3 4 5 6 7 8 9 10 |
import org.apache.spark.sql.SparkSession val spark: SparkSession = SparkSession.builder .master("local[*]") .appName("My Spark Application") .config("spark.sql.streaming.metricsEnabled", true) .getOrCreate |
Name / Default Value | Description | ||
---|---|---|---|
|
(internal) State format version used by streaming aggregation operations in a streaming query. Supported values: State between versions are tend to be incompatible, so state format version shouldn’t be modified after running. |
||
(empty) |
Default checkpoint directory for storing checkpoint data for streaming queries |
||
(empty) |
(internal) A comma-separated list of fully-qualified data source register class names for which MicroBatchReadSupport is disabled. Reads from these sources will fall back to the V1 Sources. Use SQLConf.disabledV2StreamingMicroBatchReaders to get the current value. |
||
|
|||
|
(internal) The maximum number of batches which will be retained in memory to avoid loading from files. Maximum count of versions a State Store implementation should retain in memory. The value adjusts a trade-off between memory usage vs cache miss:
Used exclusively when |
||
|
Flag whether Dropwizard CodaHale metrics will be reported for active streaming queries |
||
|
|||
|
Policy to calculate the global watermark value when there are multiple watermark operators in a streaming query. Supported values:
|
||
|
Number of progress updates to retain for a streaming query |
||
|
(internal) Time delay (in ms) before |
||
|
The initial delay and how often to execute StateStore’s maintenance task. |
||
org.apache.spark.sql.execution.streaming.state.HDFSBackedStateStoreProvider |
(internal) The fully-qualified class name of the StateStoreProvider implementation that manages state data in stateful streaming queries. This class must have a zero-arg constructor. Use SQLConf.stateStoreProviderClass to get the current value. |
||
|
(internal) When enabled ( |