Hi all…
I’m trying to sink a topic thats protnbuf based using the following curl command… it’s failing… other than having installed the mongo source/sink connector in my connect image… must I install anything else ?
=> ‘io.confluent.connect.protobuf.ProtobufConverter’
I found through some reading i need the above line… wondering if this is bt default not part of the connect image. is this installed by installing this into the connector : “https://www.confluent.io/hub/confluentinc/kafka-connect-protobuf-converter”
curl -X POST \
-H "Content-Type: application/json" \
--data '
{"name": "mongo-local-salespayments-sink-pb",
"config": {
"connector.class":"com.mongodb.kafka.connect.MongoSinkConnector",
"connection.uri":"mongodb://mbp.local:27017/?directConnection=true",
"key.converter": "org.apache.kafka.connect.storage.StringConverter",
"value.converter":"io.confluent.connect.protobuf.ProtobufConverter",
"value.converter.schema.registry.url":"http://localhost:8081",
"value.converter.schemas.enable": true,
"database":"MongoCom0",
"collection":"pb_salespayments",
"topics":"pb_salespayments"
}
}
' \
http://localhost:8083/connectors -w "\n"