IKH

Implementing Triggers And Output Modes

In this segment, you will learn how to implement various output modes in a Spark Structured Streaming application.

Let’s watch the upcoming video and see how different output modes are implemented in Spark Structured Streaming.

The code used in the above video is attached below.

Let’s watch the upcoming video and see how triggers are implemented in Spark Structured Streaming.

  • So, as you saw in the video, in the default mode, every time a new message was typed, it was printed on the console after one batch time.
  • And, if we set the trigger mode to Once, then it will wait for only one batch and will print the output to the console once it receives the first batch.

Now, head over to the next segment where you will learn about transformations and aggregations.

Report an error