Skip to content

Commit

Permalink
C2C-207: Ozone Analytics to flatten Odoo data
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruhanga authored Feb 21, 2024
1 parent 3acdf37 commit ad1fd72
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion docker/setup-connect/setup-connect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,31 @@ curl --fail -i -X PUT -H "Accept:application/json" -H "Content-Type:application/
"timestampConverter.format.datetime": "yyyy-MM-dd HH:mm:ss",
"timestampConverter.debug": "false",
"snapshot.mode": "when_needed"
}'
}'

curl --fail -i -X PUT -H "Accept:application/json" -H "Content-Type:application/json" http://${CONNECT_HOST}:8083/connectors/odoo-connector/config/ \
-d '{
"connector.class": "io.debezium.connector.postgresql.PostgresConnector",
"tasks.max": "1",
"database.hostname": "${file:/kafka/config/connect-distributed.properties:odoo.db.hostname}",
"database.port": "${file:/kafka/config/connect-distributed.properties:odoo.db.port}",
"database.user": "${file:/kafka/config/connect-distributed.properties:odoo.db.username}",
"database.password": "${file:/kafka/config/connect-distributed.properties:odoo.db.password}",
"database.dbname" : "odoo",
"topic.prefix": "odoo",
"plugin.name": "pgoutput",
"database.server.name": "odoo",
"table.include.list": "public.(.*)",
"converters": "timestampConverter",
"timestampConverter.type": "oryanmoshe.kafka.connect.util.TimestampConverter",
"timestampConverter.format.time": "HH:mm:ss",
"timestampConverter.format.date": "YYYY-MM-dd",
"timestampConverter.format.datetime": "yyyy-MM-dd HH:mm:ss",
"timestampConverter.debug": "false",
"key.converter": "org.apache.kafka.connect.json.JsonConverter",
"key.converter.schemas.enable": "true",
"heartbeat.interval.ms": "5000",
"slot.name": "odoo_debezium",
"publication.name": "odoo_publication",
"decimal.handling.mode": "double"
}'

0 comments on commit ad1fd72

Please sign in to comment.