Exercise: Using foreach Operator (and ForeachWriter)
Module: Spark Structured Streaming
Duration: 30 mins
Steps
- Develop a standalone Spark SQL application
- Read datasets from any source (e.g.
rate
, kafka
, csv
, socket
)
- Use foreach operator on streaming Dataset to process a data stream
- Use sbt package and spark-submit