kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajiv Kurian <ra...@signalfx.com>
Subject Trying to figure out the protocol.
Date Tue, 02 Feb 2016 06:08:02 GMT
I am trying to write a Kafka client (specifically a consumer) and am using
the protocol document at

Had a specific question on the Offset Request API:

OffsetRequest => ReplicaId [TopicName [Partition Time MaxNumberOfOffsets]]
  ReplicaId => int32
  TopicName => string
  Partition => int32
  Time => int64
  MaxNumberOfOffsets => int32

What does the MaxNumberOfOffsets field here mean? I noticed that in the

OffsetResponse => [TopicName [PartitionOffsets]]
  PartitionOffsets => Partition ErrorCode [Offset]
  Partition => int32
  ErrorCode => int16
  Offset => int64

Offset is an array of offsets. I am guessing this is where the
MaxNumberOfOffsets comes from. I am not quite sure how to use this feature.
So far I have been setting MaxNumberOfOffsets = 1.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message