-
Notifications
You must be signed in to change notification settings - Fork 1
/
postgres-sink.sh
executable file
·17 lines (16 loc) · 947 Bytes
/
postgres-sink.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
curl -i -X POST -H "Accept:application/json" -H "Content-Type:application/json" localhost:8083/connectors/ -d '{
"name": "postgres_sink",
"config": {
"connector.class": "io.confluent.connect.jdbc.JdbcSinkConnector",
"connection.user":"postgres",
"connection.password":"root",
"key.converter": "io.confluent.connect.avro.AvroConverter",
"key.converter.schema.registry.url": "http:https://schema-registry:8081",
"value.converter": "io.confluent.connect.avro.AvroConverter",
"value.converter.schema.registry.url": "http:https://schema-registry:8081",
"connection.url": "jdbc:postgresql:https://postgres:5432/",
"topics": "WordWithCount",
"auto.create": "true"
}
}'
curl -i -X GET -H "Accept:application/json" -H "Content-Type:application/json" localhost:8083/connectors/postgres_sink