forked from confluentinc/demo-scene
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconnect_sink_gbq.sh
24 lines (24 loc) · 989 Bytes
/
connect_sink_gbq.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
curl -X "POST" "http://localhost:8083/connectors/" \
-H "Content-Type: application/json" \
-d '{
"name": "sink_gbq_environment-data",
"config": {
"connector.class":"com.wepay.kafka.connect.bigquery.BigQuerySinkConnector",
"topics": "ENVIRONMENT_DATA_KEYED",
"key.converter":"org.apache.kafka.connect.storage.StringConverter",
"value.converter":"io.confluent.connect.avro.AvroConverter",
"value.converter.schema.registry.url":"http://schema-registry:8081",
"schemaRetriever":"com.wepay.kafka.connect.bigquery.schemaregistry.schemaretriever.SchemaRegistrySchemaRetriever",
"schemaRegistryLocation":"http://schema-registry:8081",
"tasks.max":"1",
"sanitizeTopics":"true",
"autoCreateTables":"true",
"autoUpdateSchemas":"true",
"bufferSize":"100000",
"maxWriteSize":"10000",
"tableWriteWait":"1000",
"project":"GCP_PROJECT_NAME",
"datasets":".*=environment_data",
"keyfile":"/root/creds/gcp_creds.json"
}
}'