How to set group.id for consumer group in kafka data source in Structured Streaming?

后端 未结 4 751
一整个雨季
一整个雨季 2020-12-06 03:11

I want to use Spark Structured Streaming to read from a secure kafka. This means that I will need to force a specific group.id. However, as is stated in the documentation th

4条回答
  •  旧巷少年郎
    2020-12-06 03:29

    Structured Streaming guide seems to be quite explicit about it:

    Note that the following Kafka params cannot be set and the Kafka source or sink will throw an exception:

    group.id: Kafka source will create a unique group id for each query automatically.

    auto.offset.reset: Set the source option startingOffsets to specify where to start instead.

提交回复
热议问题