Hi Lorenzo

It seems to have been added only recently to the Kafka console consumer (see 
https://github.com/apache/kafka/pull/9099). You need a 2.7.0 Kafka distrib. 

Gilles Philippart
Principle Software Engineer
Funding Circle 

> On 10 Feb 2021, at 21:57, Robin Moffatt <ro...@confluent.io> wrote:
> 
> FWIW kafkacat will do this no sweat (I realise that doesn't help w.r.t. the
> tool you're trying to use, but mentioning it in case :) )
> 
> kafkacat -b kafka-broker:9092 \
>      -t my_topic_name -C \
>      -f '\nKey (%K bytes): %k
>  Value (%S bytes): %s
>  Timestamp: %T
>  Partition: %p
>  Offset: %o
>  Headers: %h\n'
> 
> 
> -- 
> 
> Robin Moffatt | Senior Developer Advocate | ro...@confluent.io | @rmoff
> 
> 
>> On Wed, 10 Feb 2021 at 17:59, Rovere Lorenzo <l.rov...@reply.it> wrote:
>> 
>> Hi
>> 
>> 
>> 
>> We are on Kafka version: 2.2.1-kafka-4.1.0
>> 
>> We have some issues when trying to dump some messages from a topic.
>> 
>> Topic describe: Topic:test     PartitionCount:3
>> ReplicationFactor:2     Configs:message.timestamp.type=LogAppendTime
>> 
>> 
>> 
>> Using the kafka-console-consumer I want to print the timestamp and the
>> partition besides the content of the topic, so I specified --property
>> print.partition=true --property print.timestamp=true in the
>> kafka-console-consumer.sh but I only get the timestamp. The partition field
>> is always empty. Any reason why this would happen? Thanks
>> 
>> 
>> 
>> Lorenzo Rovere
>> 
>> 
>> 
>> 
>> Lorenzo Rovere
>> 
>> Technology Reply
>> Via Avogadri, 2
>> 31057 - Silea (TV) - ITALY
>> phone: +39 0422 1836521
>> l.rov...@reply.it
>> www.reply.it
>> 
>> [image: Technology Reply]
>> 

-- 




Funding Circle Limited is authorised and regulated by the Financial 
Conduct Authority under firm registration number 722513. Funding Circle is 
not covered by the Financial Services Compensation Scheme. Registered in 
England (Co. No. 06968588) with registered office at 71 Queen Victoria 
Street, London EC4V 4AY.

Reply via email to