Created
January 29, 2019 07:31
-
-
Save alces/b02a354bb778c66171a82ae06b0ff899 to your computer and use it in GitHub Desktop.
Reset value of incrementing field for Kafka JDBC source connector
This file contains hidden or 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
#!/bin/bash | |
echo '["my-connector-name",{"protocol":"1","table":"my_db_name.my_table_name"}]@{"incrementing":5}' | kafka-console-producer --topic _connect-offsets --broker-list 127.0.0.1:9092 --property parse.key=true --property key.separator=@ | |
# And after issuing this command, restart the connector's task (pausing/resuming the connector isn't enoght) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment