{"id":7917,"date":"2024-11-14T09:35:19","date_gmt":"2024-11-14T01:35:19","guid":{"rendered":"https:\/\/fwq.ai\/blog\/7917\/"},"modified":"2024-11-14T09:35:19","modified_gmt":"2024-11-14T01:35:19","slug":"flink-connector-mysql-cdc-%e7%9b%91%e5%90%ac%e4%b8%bb%e9%94%ae%e4%b8%ba-binary-%e6%a0%bc%e5%bc%8f%e7%9a%84-mysql-%e8%a1%a8%e6%97%b6%e5%87%ba%e7%8e%b0%e9%94%99%e8%af%af%ef%bc%8c%e5%a6%82%e4%bd%95","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/7917\/","title":{"rendered":"Flink-Connector-Mysql-Cdc \u76d1\u542c\u4e3b\u952e\u4e3a Binary \u683c\u5f0f\u7684 MySQL \u8868\u65f6\u51fa\u73b0\u9519\u8bef\uff0c\u5982\u4f55\u89e3\u51b3\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173133237812823.jpg\" class=\"aligncenter\" title=\"Flink-Connector-Mysql-Cdc \u76d1\u542c\u4e3b\u952e\u4e3a Binary \u683c\u5f0f\u7684 MySQL \u8868\u65f6\u51fa\u73b0\u9519\u8bef\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u63d2\u56fe\" alt=\"Flink-Connector-Mysql-Cdc \u76d1\u542c\u4e3b\u952e\u4e3a Binary \u683c\u5f0f\u7684 MySQL \u8868\u65f6\u51fa\u73b0\u9519\u8bef\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>flink-connector&#8211;cdc \u76d1\u542c mysql \u65f6\u9047\u5230\u4e3b\u952e\u4e3a binary \u683c\u5f0f\u7684\u9519\u8bef<\/strong><\/p>\n<p>\u5728\u4f7f\u7528 flink-connector-mysql-cdc 2.1.1 \u76d1\u542c mysql \u6570\u636e\u5e93\u65f6\uff0c\u5982\u679c mysql \u8868\u7684\u4e3b\u952e\u4e3a\u4e8c\u8fdb\u5236\u683c\u5f0f\uff0c\u53ef\u80fd\u4f1a\u51fa\u73b0\u9519\u8bef\u63d0\u793a\uff1a[b cannot be cast to java.lang.comparable\u3002\u5982\u4f55\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff1f<\/p>\n<p><strong>\u95ee\u9898\u5206\u6790<\/strong><\/p>\n<p>\u4ece\u9519\u8bef\u63d0\u793a\u53ef\u4ee5\u770b\u51fa\uff0c\u95ee\u9898\u51fa\u5728\u62c6\u5206\u8868\u65f6\u3002\u5f53 mysql \u8868\u7684\u4e3b\u952e\u4e3a\u4e8c\u8fdb\u5236\u683c\u5f0f\u65f6\uff0c\u62c6\u5206\u5668\u65e0\u6cd5\u5c06\u4e8c\u8fdb\u5236\u4e3b\u952e\u8f6c\u6362\u4e3a\u53ef\u6bd4\u8f83\u7684\u683c\u5f0f\uff0c\u5bfc\u81f4\u4e86\u7c7b\u578b\u8f6c\u6362\u5f02\u5e38\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6cd5<\/strong><\/p>\n<p>\u7ecf\u8fc7\u8c03\u67e5\uff0c\u8be5\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u6cd5\u662f\u5347\u7ea7\u5230 flink-connector-mysql-cdc \u7684\u6700\u65b0\u7a33\u5b9a\u7248\u672c\u3002\u5728\u6700\u65b0\u7248\u672c\u4e2d\uff0c\u8be5\u95ee\u9898\u5df2\u5f97\u5230\u4fee\u590d\u3002<\/p>\n<p>\u5177\u4f53\u64cd\u4f5c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u66f4\u65b0 maven \u4f9d\u8d56\uff1a<\/li>\n<\/ol>\n<pre>&lt;dependency&gt;\n  &lt;groupId&gt;com.ververica&lt;\/groupId&gt;\n  &lt;artifactId&gt;flink-connector-mysql-cdc&lt;\/artifactId&gt;\n  &lt;version&gt;2.1.3&lt;\/version&gt;\n&lt;\/dependency&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ol>\n<li>\u91cd\u65b0\u6784\u5efa\u548c\u90e8\u7f72\u4f5c\u4e1a\u3002<\/li>\n<li>\u786e\u8ba4\u95ee\u9898\u5df2\u89e3\u51b3\u3002<\/li>\n<\/ol>\n<p><strong>\u5176\u4ed6\u4fe1\u606f<\/strong><\/p>\n<p>\u6b64\u95ee\u9898\u7684\u76f8\u5173 issue \u5df2\u5728 hub \u4e0a\u63d0\u51fa\u5e76\u5df2\u89e3\u51b3\uff1ahttps:\/\/github.com\/ververica\/flink-cdc-connectors\/issues\/2746\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fFlink-Connector-Mysql-Cdc \u76d1\u542c\u4e3b\u952e\u4e3a Binary \u683c\u5f0f\u7684 MySQL \u8868\u65f6\u51fa\u73b0\u9519\u8bef\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>flink-connector&#8211;cdc \u76d1\u542c mysql \u65f6\u9047\u5230\u4e3b\u952e\u4e3a binary \u683c\u5f0f\u7684\u9519\u8bef \u5728\u4f7f\u7528 flink-connector-mysql-cdc 2.1.1 \u76d1\u542c mysql \u6570\u636e\u5e93\u65f6\uff0c\u5982\u679c mysql \u8868\u7684\u4e3b\u952e\u4e3a\u4e8c\u8fdb\u5236\u683c\u5f0f\uff0c\u53ef\u80fd\u4f1a\u51fa\u73b0\u9519\u8bef\u63d0\u793a\uff1a[b cannot be cast to java.lang.comparable\u3002\u5982\u4f55\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff1f \u95ee\u9898\u5206\u6790 \u4ece\u9519\u8bef\u63d0\u793a\u53ef\u4ee5\u770b\u51fa\uff0c\u95ee\u9898\u51fa\u5728\u62c6\u5206\u8868\u65f6\u3002\u5f53 mysql \u8868\u7684\u4e3b\u952e\u4e3a\u4e8c\u8fdb\u5236\u683c\u5f0f\u65f6\uff0c\u62c6\u5206\u5668\u65e0\u6cd5\u5c06\u4e8c\u8fdb\u5236\u4e3b\u952e\u8f6c\u6362\u4e3a\u53ef\u6bd4\u8f83\u7684\u683c\u5f0f\uff0c\u5bfc\u81f4\u4e86\u7c7b\u578b\u8f6c\u6362\u5f02\u5e38\u3002 \u89e3\u51b3\u65b9\u6cd5 \u7ecf\u8fc7\u8c03\u67e5\uff0c\u8be5\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u6cd5\u662f\u5347\u7ea7\u5230 flink-connector-mysql-cdc \u7684\u6700\u65b0\u7a33\u5b9a\u7248\u672c\u3002\u5728\u6700\u65b0\u7248\u672c\u4e2d\uff0c\u8be5\u95ee\u9898\u5df2\u5f97\u5230\u4fee\u590d\u3002 \u5177\u4f53\u64cd\u4f5c\u6b65\u9aa4\u5982\u4e0b\uff1a \u66f4\u65b0 maven \u4f9d\u8d56\uff1a &lt;dependency&gt; &lt;groupId&gt;com.ververica&lt;\/groupId&gt; &lt;artifactId&gt;flink-connector-mysql-cdc&lt;\/artifactId&gt; &lt;version&gt;2.1.3&lt;\/version&gt; &lt;\/dependency&gt; \u767b\u5f55\u540e\u590d\u5236 \u91cd\u65b0\u6784\u5efa\u548c\u90e8\u7f72\u4f5c\u4e1a\u3002 \u786e\u8ba4\u95ee\u9898\u5df2\u89e3\u51b3\u3002 \u5176\u4ed6\u4fe1\u606f \u6b64\u95ee\u9898\u7684\u76f8\u5173 issue \u5df2\u5728 hub \u4e0a\u63d0\u51fa\u5e76\u5df2\u89e3\u51b3\uff1ahttps:\/\/github.com\/ververica\/flink-cdc-connectors\/issues\/2746\u3002 \u4ee5\u4e0a\u5c31\u662fFlink-Connector-Mysql-Cdc \u76d1\u542c\u4e3b\u952e\u4e3a Binary \u683c\u5f0f\u7684 MySQL \u8868\u65f6\u51fa\u73b0\u9519\u8bef\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-7917","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/7917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=7917"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/7917\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=7917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=7917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=7917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}