[英]Can I map multiple buckets with multiple topics in a single Kafka-Connector S3 sink connector?
Google didn't help me, so I want to ask you.谷歌没有帮助我,所以我想问你。 I have a lot of kafka topics, and I want to store the messages of a particular topic in a particular S3 bucket.我有很多 kafka 主题,我想将特定主题的消息存储在特定的 S3 存储桶中。
Do I need to create an S3 sink connector for each bucket or can I configure all the stuff in a single S3 json file (map a bucket with a topic)?我是否需要为每个存储桶创建一个 S3 接收器连接器,还是可以在单个 S3 json 文件中配置所有内容(将存储桶映射到一个主题)?
Thanks for your help!谢谢你的帮助! :) :)
The S3 bucket name is specified per-connector , so you will need to create one connector per bucket. S3 存储桶名称是按连接器指定的,因此您需要为每个存储桶创建一个连接器。
Note that you can specify multiple topics per connector ( topics
/ topics.regex
), so if you wanted multiple topics going to one bucket (but different paths), you could do this with a single connector.请注意,您可以为每个连接器指定多个主题 ( topics
/ topics.regex
),因此如果您希望多个主题进入一个存储桶(但路径不同),您可以使用单个连接器执行此操作。 But for multiple buckets, you'll need multiple connectors.但是对于多个存储桶,您将需要多个连接器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.