[
https://issues.apache.org/jira/browse/KAFKA-21559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18146439#comment-18146439
]
Justine Olshan commented on KAFKA-21559:
----------------------------------------
I also just ran into this yesterday :)
> The coordinator record formatters print all records on one line
> ---------------------------------------------------------------
>
> Key: KAFKA-21559
> URL: https://issues.apache.org/jira/browse/KAFKA-21559
> Project: Kafka
> Issue Type: Bug
> Affects Versions: 4.0.0
> Reporter: David Jacot
> Assignee: David Jacot
> Priority: Major
>
> The message formatters that decode the records of the internal
> coordinator topics write the JSON of each record without a line
> separator, and the console consumer adds none. When
> kafka-console-consumer.sh reads __consumer_offsets,
> __transaction_state or __share_group_state with one of them, all the
> records are printed back to back on a single line, which is hard to
> read and to process with line-based tools such as grep.
> For instance:
> bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 \
> --topic __consumer_offsets --from-beginning \
> --formatter org.apache.kafka.tools.consumer.OffsetsMessageFormatter
> The affected formatters are:
> - org.apache.kafka.tools.consumer.GroupMetadataMessageFormatter,
> OffsetsMessageFormatter and TransactionLogMessageFormatter, since
> 4.0.
> - org.apache.kafka.tools.consumer.ShareGroupMessageFormatter and
> org.apache.kafka.tools.consumer.group.share.ShareGroupStateMessageFormatter,
> since 4.1.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)