Spark Streaming: long queued/active batches
Asked Answered
M

2

5

could anyone please point out what's the cause of this active batches hanging there for many weeks and never being processed? Thanks a lot.

My guess is not enough executors, and more workers/executors will solve the problem? Or Spark assign priority on different batches within its task scheduler?

But the situation here is, very recent batches (end of June) got processed successfully, but batches in May still being queued.

I just checked my Spark setting, scheduler policy is FIFO

spark.scheduler.mode    FIFO

enter image description here

Manamanacle answered 7/7, 2016 at 17:55 Comment(0)
M
2

It turns out that the master node is the bottleneck.

Master node is short of memory, and then maybe scheduler cannot process fast enough.

Solution: change master node to be a more powerful EC2 instance

Manamanacle answered 6/10, 2016 at 23:26 Comment(1)
I was running a VM with 1 VCPU this was causing the backlogSaluki
P
1

in spark-submit set --diver-memory and --executor-memory to appropriate values base on your events count such that 10000M

Paigepaik answered 13/10, 2019 at 11:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.