1. <small id='1d6k1'></small><noframes id='1d6k1'>

      <i id='1d6k1'><tr id='1d6k1'><dt id='1d6k1'><q id='1d6k1'><span id='1d6k1'><b id='1d6k1'><form id='1d6k1'><ins id='1d6k1'></ins><ul id='1d6k1'></ul><sub id='1d6k1'></sub></form><legend id='1d6k1'></legend><bdo id='1d6k1'><pre id='1d6k1'><center id='1d6k1'></center></pre></bdo></b><th id='1d6k1'></th></span></q></dt></tr></i><div id='1d6k1'><tfoot id='1d6k1'></tfoot><dl id='1d6k1'><fieldset id='1d6k1'></fieldset></dl></div>
      <legend id='1d6k1'><style id='1d6k1'><dir id='1d6k1'><q id='1d6k1'></q></dir></style></legend>
        <bdo id='1d6k1'></bdo><ul id='1d6k1'></ul>
      <tfoot id='1d6k1'></tfoot>

      是否可以在 Debezium 中配置 table_name =>卡夫卡主

      时间:2023-08-21
      <legend id='Gh4bF'><style id='Gh4bF'><dir id='Gh4bF'><q id='Gh4bF'></q></dir></style></legend>

        1. <small id='Gh4bF'></small><noframes id='Gh4bF'>

        2. <tfoot id='Gh4bF'></tfoot>
            <tbody id='Gh4bF'></tbody>
            <bdo id='Gh4bF'></bdo><ul id='Gh4bF'></ul>
              • <i id='Gh4bF'><tr id='Gh4bF'><dt id='Gh4bF'><q id='Gh4bF'><span id='Gh4bF'><b id='Gh4bF'><form id='Gh4bF'><ins id='Gh4bF'></ins><ul id='Gh4bF'></ul><sub id='Gh4bF'></sub></form><legend id='Gh4bF'></legend><bdo id='Gh4bF'><pre id='Gh4bF'><center id='Gh4bF'></center></pre></bdo></b><th id='Gh4bF'></th></span></q></dt></tr></i><div id='Gh4bF'><tfoot id='Gh4bF'></tfoot><dl id='Gh4bF'><fieldset id='Gh4bF'></fieldset></dl></div>
                本文介绍了是否可以在 Debezium 中配置 table_name =>卡夫卡主题映射?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我已阅读http://debezium.io/docs/connectors/mysql/ 但我找不到有关是否可以配置 debezium 以便将 2 个(或更多)表中的更改写入相同的单个 kafka 主题的任何信息?在我看来,它总是 1 个表 -> 1 个主题.

                I've read http://debezium.io/docs/connectors/mysql/ but I could not find any info about whether debezium can be configured so that changes from 2 (or more) tables could be written to the same, single kafka topic? It seems to me that it is always 1 table -> 1 topic.

                推荐答案

                是的,使用 单条消息根据您确定的链接进行转换.您可以使用正则表达式 (regex) 将表映射到所需的主题.io.debezium.transforms.ByLogicalTableRouterorg.apache.kafka.connect.transforms.RegexRouter 都可以解决问题.有后者的例子 在这里的这篇文章:

                Yes, use Single Message Transforms, per the link you identified. You can use regular expressions (regex) to map the tables to the topic required. Both io.debezium.transforms.ByLogicalTableRouter or org.apache.kafka.connect.transforms.RegexRouter should do the trick. There's an example of the latter in this post here:

                "transforms":"dropPrefix",  
                "transforms.dropPrefix.type":"org.apache.kafka.connect.transforms.RegexRouter",  
                "transforms.dropPrefix.regex":"DC1-TEST-(.*)",  
                "transforms.dropPrefix.replacement":"$1"
                

                这篇关于是否可以在 Debezium 中配置 table_name =>卡夫卡主题映射?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:Debezium:数据库中没有记录最大LSN;请确保 SQL Se 下一篇:Debezium 如何使用 Kafka Connect 正确注册 SqlServer 连接

                相关文章

                最新文章

              • <tfoot id='HYwx5'></tfoot>
              • <small id='HYwx5'></small><noframes id='HYwx5'>

                  • <bdo id='HYwx5'></bdo><ul id='HYwx5'></ul>

                  1. <legend id='HYwx5'><style id='HYwx5'><dir id='HYwx5'><q id='HYwx5'></q></dir></style></legend>
                    <i id='HYwx5'><tr id='HYwx5'><dt id='HYwx5'><q id='HYwx5'><span id='HYwx5'><b id='HYwx5'><form id='HYwx5'><ins id='HYwx5'></ins><ul id='HYwx5'></ul><sub id='HYwx5'></sub></form><legend id='HYwx5'></legend><bdo id='HYwx5'><pre id='HYwx5'><center id='HYwx5'></center></pre></bdo></b><th id='HYwx5'></th></span></q></dt></tr></i><div id='HYwx5'><tfoot id='HYwx5'></tfoot><dl id='HYwx5'><fieldset id='HYwx5'></fieldset></dl></div>