【发布时间】:2022-02-21 05:19:40
【问题描述】:
这个问题类似于Python KafkaConsumer start consuming messages from a timestamp,除了我想知道如何在 Confluent 的官方 Python Kafka 客户端中做到这一点。
我查看了 Consumer.offsets_for_times 函数,但我对它接受 TopicPartition.offset 字段中的时间戳感到困惑。
offset 如何等同于时间戳?
【问题讨论】:
标签: python apache-kafka confluent-kafka-python