Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT source - possibility to add prefix to kafka topic #1386

Open
dberardo-com opened this issue Oct 1, 2024 · 2 comments
Open

MQTT source - possibility to add prefix to kafka topic #1386

dberardo-com opened this issue Oct 1, 2024 · 2 comments

Comments

@dberardo-com
Copy link

i want to have 2 source connectors reading from the same mqtt topic and writing to 2 different kafka topics. why i need this? because i am using a different partitioning key

is it possible to a add a prefix so "select * from" to add to the kafka topic name ?

@stheppi
Copy link
Contributor

stheppi commented Nov 14, 2024

HI @dberardo-com

Not at the moment. you could use an SMT to adapt the topic name.

@dberardo-com
Copy link
Author

Thanks for the reply.

So are you suggesting to create 2 connectors, 1 of which would use an SMT to rewrite the topic name?

As I am using wildcard mqtt subscriptions, di you know any SMT that can rewrite topic names dynamically (e.g. using regex or so)? Or maybe simply appending a suffix "_copy" to the topic names?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants