gaborgsomogyi commented on issue #24613: [SPARK-27549][SS] Add support for committing kafka offsets per batch for supporting external tooling URL: https://github.com/apache/spark/pull/24613#issuecomment-493967858 I've asked the high level question because if `KafkaOffsetReader` [fails](https://github.com/apache/spark/blob/974b8792205b2882f1b6c6f429c889dbf33434e6/external/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaOffsetReader.scala#L392) then a [new groupId](https://github.com/apache/spark/blob/974b8792205b2882f1b6c6f429c889dbf33434e6/external/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaOffsetReader.scala#L84) will be generated. In the case you've showed the following is possible: ``` [spark-kafka-source-413106f6-9d4f-491d-8782-f1f800acb6fe-1453634933-driver-0,TutorialTopic5,0]::OffsetAndMetadata(offset=0, leaderEpoch=Optional.empty, metadata=, commitTimestamp=1558354165044, expireTimestamp=None) [spark-kafka-source-0b4ac39b-98d0-4e94-ae01-f4168bebae2a-1568478783-driver-1,TutorialTopic5,0]::OffsetAndMetadata(offset=0, leaderEpoch=Optional.empty, metadata=, commitTimestamp=1558354165044, expireTimestamp=None) [spark-kafka-source-413106f6-9d4f-491d-8782-f1f800acb6fe-1453634933-driver-2,TutorialTopic5,0]::OffsetAndMetadata(offset=1, leaderEpoch=Optional.empty, metadata=, commitTimestamp=1558354170047, expireTimestamp=None) ... ``` How are you planning to fetch the committed offsets from the tooling side?
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
