I'm trying to read data from Kafka (1 topic, 5 partitions) using Spark Streaming Direct approach. In order to increase parallelism for processing the data, I set Dstream.repartition(60). However it seems that only 5 executors are running in each stage of each batch of streaming?
I had set these parameters:
--num-executors 20
--executor-cores 4
--executor-memory 3G
--driver-memory 3G
--spark.default.Parallelism 60
My confusion is:
I want to decrease processing time, so I try to increase the number of Vcores, but this method doesn't seem to work. Why? Thanks.