Last active
November 19, 2019 19:12
-
-
Save sohangp/51baf62543a25b0e9cc485d3ae1ed3ef to your computer and use it in GitHub Desktop.
Student Connector
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
@Bean | |
public io.debezium.config.Configuration studentConnector() { | |
return io.debezium.config.Configuration.create() | |
.with("connector.class", "io.debezium.connector.postgresql.PostgresConnector") | |
.with("offset.storage", "org.apache.kafka.connect.storage.FileOffsetBackingStore") | |
.with("offset.storage.file.filename", "/path/cdc/offset/student-offset.dat") | |
.with("offset.flush.interval.ms", 60000) | |
.with("name", "student-postgres-connector") | |
.with("database.server.name", studentDBHost+"-"+studentDBName) | |
.with("database.hostname", studentDBHost) | |
.with("database.port", studentDBPort) | |
.with("database.user", studentDBUserName) | |
.with("database.password", studentDBPassword) | |
.with("database.dbname", studentDBName) | |
.with("table.whitelist", STUDENT_TABLE_NAME).build(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment