set spark.streaming.kafka.maxRatePerPartition for createDirectStream

后端 未结 2 371
南方客
南方客 2020-12-28 23:48

I need to increase the input rate per partition for my application and I have use .set(\"spark.streaming.kafka.maxRatePerPartition\",100) for the config. The st

2条回答
  •  庸人自扰
    2020-12-29 00:19

    Property fetches N messages from a partition per seconds. If I have M partition and batch interval is B, then total messages I can see in batch is N * M * B.

    There are few things you should verify

    1. Is your input rate is >500 for 10s.
    2. Is kafka topic is properly partitioned.

提交回复
热议问题