1

Right now my Connect config writes its messages to a topic by the same name as the database table it's reading. Is it possible to specify the exact topic I want to write to instead?

1 Answers1

3

Try a RegexRouter - https://docs.confluent.io/current/connect/transforms/regexrouter.html

"transforms":"rename",
"transforms.rename.type":"org.apache.kafka.connect.transforms.RegexRouter",
"transforms.rename.regex":".*",
"transforms.rename.replacement":"some-other-name"
OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
  • Thank you. Seems obvious after reading its docs, but I never would have guessed what it does by the name alone. –  Aug 27 '19 at 22:09