{"id":45511,"date":"2024-12-01T13:13:52","date_gmt":"2024-12-01T05:13:52","guid":{"rendered":"https:\/\/fwq.ai\/blog\/45511\/"},"modified":"2024-12-01T13:13:52","modified_gmt":"2024-12-01T05:13:52","slug":"flink-cdc-%e7%9b%91%e5%90%ac%e4%b8%bb%e9%94%ae%e4%b8%ba%e4%ba%8c%e8%bf%9b%e5%88%b6%e6%a0%bc%e5%bc%8f%e7%9a%84-mysql-%e8%a1%a8%e6%8a%a5%e9%94%99%ef%bc%9a%e5%a6%82%e4%bd%95%e8%a7%a3%e5%86%b3%ef%bc%9f-3","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/45511\/","title":{"rendered":"Flink CDC \u76d1\u542c\u4e3b\u952e\u4e3a\u4e8c\u8fdb\u5236\u683c\u5f0f\u7684 MySQL \u8868\u62a5\u9519\uff1a\u5982\u4f55\u89e3\u51b3\uff1f"},"content":{"rendered":"<p><b><\/b> <\/p>\n<h1>Flink CDC \u76d1\u542c\u4e3b\u952e\u4e3a\u4e8c\u8fdb\u5236\u683c\u5f0f\u7684 MySQL \u8868\u62a5\u9519\uff1a\u5982\u4f55\u89e3\u51b3\uff1f<\/h1>\n<p>\u4ece\u73b0\u5728\u5f00\u59cb\uff0c\u52aa\u529b\u5b66\u4e60\u5427\uff01\u672c\u6587\u4e3b\u8981\u8bb2\u89e3\u4e86\u7b49\u7b49\u76f8\u5173\u77e5\u8bc6\u70b9\uff0c\u6211\u4f1a\u5728\u7c73\u4e91\u4e2d\u6301\u7eed\u66f4\u65b0\u76f8\u5173\u7684\u7cfb\u5217\u6587\u7ae0\uff0c\u6b22\u8fce\u5927\u5bb6\u5173\u6ce8\u5e76\u79ef\u6781\u7559\u8a00\u5efa\u8bae\u3002\u4e0b\u9762\u5c31\u5148\u4e00\u8d77\u6765\u770b\u4e00\u4e0b\u672c\u7bc7\u6b63\u6587\u5185\u5bb9\u5427\uff0c\u5e0c\u671b\u80fd\u5e2e\u5230\u4f60\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241112\/17313777446732ba50691b3.jpg\" class=\"aligncenter\" title=\"Flink CDC \u76d1\u542c\u4e3b\u952e\u4e3a\u4e8c\u8fdb\u5236\u683c\u5f0f\u7684 MySQL \u8868\u62a5\u9519\uff1a\u5982\u4f55\u89e3\u51b3\uff1f\u63d2\u56fe\" alt=\"Flink CDC \u76d1\u542c\u4e3b\u952e\u4e3a\u4e8c\u8fdb\u5236\u683c\u5f0f\u7684 MySQL \u8868\u62a5\u9519\uff1a\u5982\u4f55\u89e3\u51b3\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>flink cdc \u76d1\u542c\u4e3b\u952e\u4e3a\u4e8c\u8fdb\u5236\u683c\u5f0f\u7684 mysql \u8868\u62a5\u9519<\/strong><\/p>\n<p>\u4f7f\u7528 flink cdc \u76d1\u542c mysql \u8868\u65f6\uff0c\u5982\u679c\u4e3b\u952e\u662f\u4e8c\u8fdb\u5236\u683c\u5f0f\uff0c\u53ef\u80fd\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef\uff1a<\/p>\n<pre>[B cannot be cast to java.lang.Comparable<\/pre>\n<p>\u8fd9\u662f\u7531\u4e8e\u4e3b\u952e\u4e3a\u4e8c\u8fdb\u5236\u683c\u5f0f\u5bfc\u81f4\u6bd4\u8f83\u5668\u65e0\u6cd5\u5c06\u5b83\u4eec\u8f6c\u6362\u4e3a\u53ef\u6bd4\u8f83\u7c7b\u578b\u9020\u6210\u7684\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong><\/p>\n<p>\u6b64\u95ee\u9898\u5df2\u5728 flink cdc \u4e2d\u5f97\u5230\u89e3\u51b3\uff0c\u5177\u4f53\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u5c06 flink cdc \u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u3002<\/li>\n<li>\u5982\u679c\u5347\u7ea7\u540e\u4ecd\u7136\u9047\u5230\u6b64\u95ee\u9898\uff0c\u53ef\u4ee5\u67e5\u770b [github issue #2746](https:\/\/github.com\/ververica\/flink-cdc-connectors\/issues\/2746) \u5e76\u6309\u7167\u63d0\u4f9b\u7684\u89e3\u51b3\u65b9\u6848\u8fdb\u884c\u64cd\u4f5c\u3002<\/li>\n<\/ol>\n<p>\u672c\u7bc7\u5173\u4e8e\u300aFlink CDC \u76d1\u542c\u4e3b\u952e\u4e3a\u4e8c\u8fdb\u5236\u683c\u5f0f\u7684 MySQL \u8868\u62a5\u9519\uff1a\u5982\u4f55\u89e3\u51b3\uff1f\u300b\u7684\u4ecb\u7ecd\u5c31\u5230\u6b64\u7ed3\u675f\u5566\uff0c\u4f46\u662f\u5b66\u65e0\u6b62\u5883\uff0c\u60f3\u8981\u4e86\u89e3\u5b66\u4e60\u66f4\u591a\u5173\u4e8e\u6570\u636e\u5e93\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u8bf7\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\uff01<\/p>\n<dl>\n<dt>\n <\/dt>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Flink CDC \u76d1\u542c\u4e3b\u952e\u4e3a\u4e8c\u8fdb\u5236\u683c\u5f0f\u7684 MySQL \u8868\u62a5\u9519\uff1a\u5982\u4f55\u89e3\u51b3\uff1f \u4ece\u73b0\u5728\u5f00\u59cb\uff0c\u52aa\u529b\u5b66\u4e60\u5427\uff01\u672c\u6587\u4e3b\u8981\u8bb2\u89e3\u4e86\u7b49\u7b49\u76f8\u5173\u77e5\u8bc6\u70b9\uff0c\u6211\u4f1a\u5728\u7c73\u4e91\u4e2d\u6301\u7eed\u66f4\u65b0\u76f8\u5173\u7684\u7cfb\u5217\u6587\u7ae0\uff0c\u6b22\u8fce\u5927\u5bb6\u5173\u6ce8\u5e76\u79ef\u6781\u7559\u8a00\u5efa\u8bae\u3002\u4e0b\u9762\u5c31\u5148\u4e00\u8d77\u6765\u770b\u4e00\u4e0b\u672c\u7bc7\u6b63\u6587\u5185\u5bb9\u5427\uff0c\u5e0c\u671b\u80fd\u5e2e\u5230\u4f60\uff01 flink cdc \u76d1\u542c\u4e3b\u952e\u4e3a\u4e8c\u8fdb\u5236\u683c\u5f0f\u7684 mysql \u8868\u62a5\u9519 \u4f7f\u7528 flink cdc \u76d1\u542c mysql \u8868\u65f6\uff0c\u5982\u679c\u4e3b\u952e\u662f\u4e8c\u8fdb\u5236\u683c\u5f0f\uff0c\u53ef\u80fd\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef\uff1a [B cannot be cast to java.lang.Comparable \u8fd9\u662f\u7531\u4e8e\u4e3b\u952e\u4e3a\u4e8c\u8fdb\u5236\u683c\u5f0f\u5bfc\u81f4\u6bd4\u8f83\u5668\u65e0\u6cd5\u5c06\u5b83\u4eec\u8f6c\u6362\u4e3a\u53ef\u6bd4\u8f83\u7c7b\u578b\u9020\u6210\u7684\u3002 \u89e3\u51b3\u65b9\u6cd5\uff1a \u6b64\u95ee\u9898\u5df2\u5728 flink cdc \u4e2d\u5f97\u5230\u89e3\u51b3\uff0c\u5177\u4f53\u65b9\u6cd5\u5982\u4e0b\uff1a \u5c06 flink cdc \u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u3002 \u5982\u679c\u5347\u7ea7\u540e\u4ecd\u7136\u9047\u5230\u6b64\u95ee\u9898\uff0c\u53ef\u4ee5\u67e5\u770b [github issue #2746](https:\/\/github.com\/ververica\/flink-cdc-connectors\/issues\/2746) \u5e76\u6309\u7167\u63d0\u4f9b\u7684\u89e3\u51b3\u65b9\u6848\u8fdb\u884c\u64cd\u4f5c\u3002 \u672c\u7bc7\u5173\u4e8e\u300aFlink CDC \u76d1\u542c\u4e3b\u952e\u4e3a\u4e8c\u8fdb\u5236\u683c\u5f0f\u7684 MySQL \u8868\u62a5\u9519\uff1a\u5982\u4f55\u89e3\u51b3\uff1f\u300b\u7684\u4ecb\u7ecd\u5c31\u5230\u6b64\u7ed3\u675f\u5566\uff0c\u4f46\u662f\u5b66\u65e0\u6b62\u5883\uff0c\u60f3\u8981\u4e86\u89e3\u5b66\u4e60\u66f4\u591a\u5173\u4e8e\u6570\u636e\u5e93\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u8bf7\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\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-45511","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/45511","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=45511"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/45511\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=45511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=45511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=45511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}