forked from Azure-Samples/cosmosdb-kafka-connect-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cosmosdb-orders-connector_2.json
22 lines (22 loc) · 1.15 KB
/
cosmosdb-orders-connector_2.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"name": "orders-sink",
"config": {
"connector.class": "com.azure.cosmos.kafka.connect.sink.CosmosDBSinkConnector",
"tasks.max": "1",
"topics": "orders_avro_topic",
"value.converter": "io.confluent.connect.avro.AvroConverter",
"value.converter.schemas.enable": "true",
"key.converter": "org.apache.kafka.connect.storage.StringConverter",
"key.converter.schemas.enable": "false",
"connect.cosmos.connection.endpoint": "https://cosmosdb:8081",
"connect.cosmos.master.key": "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==",
"connect.cosmos.databasename": "testdb",
"connect.cosmos.containers.topicmap": "orders_avro_topic#orders_avro",
"transforms": "RenameField,Cast",
"transforms.RenameField.type": "org.apache.kafka.connect.transforms.ReplaceField$Value",
"transforms.RenameField.renames": "orderid:id",
"transforms.Cast.type": "org.apache.kafka.connect.transforms.Cast$Value",
"transforms.Cast.spec": "id:string",
"value.converter.schema.registry.url": "http://schema-registry:8081"
}
}