Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kafka Tool can show the actual string instead of the regular hexadecimal format

Tags:

apache-kafka

if your messages are UTF-8 encoded strings, Kafka Tool can show the actual string instead of the regular hexadecimal format.

From the Kafka Tool Documentation:

By default Kafka Tool will show your messages and keys in hexadecimal format. However, if your messages are UTF-8 encoded strings, Kafka Tool can show the actual string instead of the regular hexadecimal format.

How do I turn my message into utf8?

like image 511
hyy Avatar asked Jan 31 '18 13:01

hyy


People also ask

How do I see messages in Kafka tool?

View Messages You can select how many messages to view at once and which offset to read messages from. You can view the oldest or newest messages, or you can specify a starting offset where to start reading the messages from. By default Offset Explorer will show your messages and keys in hexadecimal format.

What is Kafka tool?

Kafka Tool is a GUI application for managing and using Apache Kafka clusters. It provides an intuitive UI that allows one to quickly view objects within a Kafka cluster as well as the messages stored in the topics of the cluster. It contains features geared towards both developers and administrators.

What is chroot path in Kafka tool?

chroot path - path where the kafka cluster data appears in Zookeeper. The defalit value is correct in most cases.


1 Answers

The setup is per topic.

Go to:

Clusters > Topics > select topic > Properties > Content Types section > change Key and Message from Byte Array to String.

Kafka key and message as String in Kafka Tool

Then you can go to that topic > Partitions > your partition > Retrieve Messages .

do not miss to press update as the button is in corner and sometimes not visible if you have a bigger screen

enter image description here

like image 123
ROMANIA_engineer Avatar answered Sep 16 '22 14:09

ROMANIA_engineer