MongoDB-Kafka Implementation

35 views
Skip to first unread message

Dileep D

unread,
Aug 21, 2019, 3:50:40 PM8/21/19
to mongodb-user
Hi, 

For sink part , I am getting error as 
Invalid value io.confluent.connect.avro.AvroConverter for configuration key.converter: Class io.confluent.connect.avro.AvroConverter could not be found.
Invalid value io.confluent.connect.avro.AvroConverter for configuration value.converter: Class io.confluent.connect.avro.AvroConverter could not be found.

I am not using Confluent package but using freely available kafka.
Is this connector will work only with confluent Package. How to avoid this error . How to use avro in normal apache kafka.

Please do let me know

Wan Bachtiar

unread,
Aug 26, 2019, 4:06:06 AM8/26/19
to mongodb-user

Is this connector will work only with confluent Package. How to avoid this error . How to use avro in normal apache kafka.

Hi Dileep,

The MongoDB Connector for Kafka can be used with either Confluent’s Kafka or Apache’s Kafka deployments. The Confluent’s Kafka has some additional tooling that is beneficial to enterprise and production deployments of Kafka.

The error message that you’re getting indicates that it could not find the Avro converter specified for key.converter and value.converter configuration. Also worth mentioning that the Avro converter makes use of Confluent’s schema registry, so if you don’t have the registry it would be difficult to setup.

Depending on the use case, you can also use formats other than Avro. The sink connector is configurable to support other data formats, such as JSON with schema, JSON plain and RAW JSON. i.e. org.apache.kafka.connect.json.JsonConverter. See also MongoDB Kafka sink connector guide.

If you have further questions about the Avro converter without Confluent Schema Registry I would suggest to post a question on Kafka forums to reach wider audience with the expertise.

Regards,
Wan.

Reply all
Reply to author
Forward
0 new messages