OGG - Class not found: “com.company.kafka.CustomProducerRecord”

Published by in Ogg, Goldengate, Apache Kafka at https://rmoff.net/2016/07/28/ogg-class-not-found-com.company.kafka.customproducerrecord/

In the documentation for the current release of Oracle GoldenGate for Big Data (12.2.0.1.1.011) there’s a helpful sample configuration, which isn’t so helpful …

[...]
gg.handler.kafkahandler.ProducerRecordClass = com.company.kafka.CustomProducerRecord
[...]

This value for gg.handler.kafkahandler.ProducerRecordClass will cause a failure when you start the replicat:

[...]
Class not found: "com.company.kafka.CustomProducerRecord"
[...]

If you comment this configuration item out, it’ll use the default (oracle.goldengate.handler.kafka.DefaultProducerRecord) and work swimingly!


(Image credit: https://unsplash.com/@vanschneider)