darkknight444
darkknight444

Reputation: 546

How does back pressure property work in Spark Streaming?

I have a CustomReceiver which receives a single event(String).The received single event is used during spark application's run time to read data from nosql and to apply transformations.When the processing time for each batch was observed to be greater than batch interval I set this property.

spark.streaming.backpressure.enabled=true

After which I expected the CustomReceiver to not trigger and receive the event when a batch is processing longer than batch window, which didn't happen and still a backlog of batches were being added. Am I missing something here?

Upvotes: 7

Views: 10765

Answers (1)

Eugene Lopatkin
Eugene Lopatkin

Reputation: 2737

Try to check this and this articles.

Upvotes: 3

Related Questions