kafka-connect-mq-source icon indicating copy to clipboard operation
kafka-connect-mq-source copied to clipboard

Kafka Record Key conversion from Hexa to String

Open ChhatralaNirmal opened this issue 4 years ago • 0 comments

We are using JMSMessageId in mq.record.builder.key.header as suggested in README section to partitioning the kafka message and attach JMSMessageId as key to each record. As described in the documentation, record is getting 48 hexadecimal characters as key. Is there a way to covert this 48 hexadecimal characters to string and get original value ?

One option I thought and implemented custom smt to convert hexadecimal to string before message gets finally stored in Kafka to get real JMSMessageId. Does that approach really help or such custom smt doesn't even affect the behavior of this connector to assign 48 characters hexadecimal value to key ?

ChhatralaNirmal avatar May 27 '21 16:05 ChhatralaNirmal