Spark Structured Streaming
Stream processorspark-streaming
Micro-batch stream processing on Apache Spark with checkpointed state.
- Provider
- default
- Kind
- Stream processor
- Category
- Messaging
| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| checkpointIntervalSeconds | integer | — | no | — | inherited |
| exactlyOnce | boolean | — | no | false | ▸ false |
| instances | integer | — | no | — | inherited |
| lateDataPolicy | enum | drop | shift | sideline | no | — | inherited |
| managed | boolean | — | no | false | inherited |
| stateBackend | enum | memory | rocksdb | external | no | memory | ▸ memory |
| triggerIntervalMs | integer | — | no | — | inherited |
| watermarkSeconds | integer | — | no | — | inherited |
| windowing | enum | none | event-time | processing-time | no | none | ▸ processing-time |
Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.
windowed-aggregation-without-watermark
Event-time windows need a watermark to know when a window is complete. Without one the processor either waits forever or closes windows early and silently drops late events.
- — all of these hold:
- — the node's `windowing` is "event-time"
- — the node's `watermarkSeconds` has no value
nodes:
- { id: "spark-streaming", component: "spark-streaming" }Realtime Compute for Apache Flinkalibaba-flinkAmazon EventBridge Pipesaws-eventbridge-pipesAmazon Data Firehoseaws-firehoseAmazon Managed Service for Apache Flinkaws-managed-flinkAmazon OpenSearch Ingestionaws-opensearch-ingestionAzure Stream Analyticsazure-stream-analyticsCloudflare Logpushcloudflare-logpushCloudflare Pipelinescloudflare-pipelinesArroyoarroyoApache BeambeamBytewaxbytewaxDrasidrasiApache FlinkflinkKafka Streamskafka-streamsksqlDBksqldbLogstashlogstashMaterializematerializeApache NiFinifiNorikranorikraRedpanda Connectredpanda-connectRisingWaverisingwaveApache SamzasamzaSnowplowsnowplowApache StormstormGeneric stream processorstream-processorTremortremorGoogle Cloud Dataflowgoogle-dataflowManufacturing Data Enginegoogle-manufacturing-data-engineActivity Tracker Event Routingibm-activity-tracker-event-routingIBM Cloud Logs Routingibm-logs-routingIBM Cloud Metrics Routingibm-metrics-routingOCI Connector Huboci-connector-hubOCI GoldenGate Stream Analyticsoci-goldengate-stream-analytics
# yaml-language-server: $schema=../../schema/component.schema.json # Spark Structured Streaming: micro-batch engine triggered on processing time; sinks are at-least-once # unless idempotent, state lives in executor memory backed by checkpoint files. schemaVersion: "1" type: "component" id: "spark-streaming" kind: "stream-processor" provider: "default" docs: "https://spark.apache.org/docs/latest/structured-streaming-programming-guide.html" defaults: windowing: "processing-time" exactlyOnce: false stateBackend: "memory" properties: triggerIntervalMs: type: "integer"