-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
.ksql/CONNECTORS/CONNECTOR_02_POSTAL_OSLO_GEOLOCATION.ksql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
CREATE SINK CONNECTOR `PostalOsloGeolocationConnector` with ( | ||
"topics"= 'postal.snapshot.oslo.flatten.geolocation', | ||
"input.data.format"= 'JSON_SR', | ||
"input.key.format"= 'JSON_SR', | ||
"delete.enabled"= false, | ||
"connector.class"= 'MicrosoftSqlServerSink', | ||
"name"= 'PostalOsloGeolocationConnector', | ||
"kafka.auth.mode"= 'KAFKA_API_KEY', | ||
"kafka.api.key"= '***', | ||
"kafka.api.secret"= '***', | ||
"connection.host"= '***', | ||
"connection.port"= '1433', | ||
"connection.user"= 'geolocation', | ||
"connection.password"= '***', | ||
"db.name"= 'vbr-wms', | ||
"ssl.mode"= 'require', | ||
"insert.mode"= 'UPSERT', | ||
"table.name.format"= 'vbr-wms.geolocation.PostalOsloGeolocation', | ||
"table.types"= 'TABLE', | ||
"db.timezone"= 'UTC', | ||
"pk.mode"= 'record_key', | ||
"pk.fields"= 'msgkey', | ||
"auto.create"= true, | ||
"auto.evolve"= true, | ||
"quote.sql.identifiers"= 'ALWAYS', | ||
"batch.sizes"= 3000, | ||
"tasks.max"= 1 | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## How to execute per cluster | ||
- put all script `ALL_01_POSTAL_SNAPSHOT_OSLO_STREAM` into ksqlDB | ||
- Set auto.offset.reset = earliest | ||
- execute | ||
- now do the same for the specific script(s) | ||
|
||
## How to set up the connectors | ||
- put the connectors script into ksqlDB | ||
- replace *** with the secrets from last pass | ||
- Run the script |