{"id":10008216,"date":"2023-09-01T15:59:36","date_gmt":"2023-09-01T07:59:36","guid":{"rendered":"https:\/\/blog.itmax.cn\/?p=10008216"},"modified":"2023-09-01T15:59:36","modified_gmt":"2023-09-01T07:59:36","slug":"paimonstarrocks-%e6%b9%96%e4%bb%93%e4%b8%80%e4%bd%93%e6%95%b0%e6%8d%ae%e5%88%86%e6%9e%90%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10008216","title":{"rendered":"Paimon+StarRocks \u6e56\u4ed3\u4e00\u4f53\u6570\u636e\u5206\u6790\u65b9\u6848"},"content":{"rendered":"<blockquote>\n<p>\u6458\u8981\uff1a\u672c\u6587\u6574\u7406\u81ea\u963f\u91cc\u4e91\u9ad8\u7ea7\u5f00\u53d1\u5de5\u7a0b\u5e08\u66fe\u5e86\u680b\uff08\u66e6\u4e50\uff09\u5728 Streaming Lakehouse Meetup \u7684\u5206\u4eab\u3002\u5185\u5bb9\u4e3b\u8981\u5206\u4e3a\u56db\u4e2a\u90e8\u5206\uff1a<\/p>\n<ol>\n<li>\u4f20\u7edf\u6570\u636e\u4ed3\u5e93\u5206\u6790\u5b9e\u73b0\u65b9\u6848\u7b80\u4ecb<\/li>\n<li>Paimon+StarRocks \u6784\u5efa\u6e56\u4ed3\u4e00\u4f53\u6570\u636e\u5206\u6790\u5b9e\u73b0\u65b9\u6848<\/li>\n<li>StarRocks \u4e0e Paimon \u7ed3\u5408\u7684\u4f7f\u7528\u65b9\u5f0f\u4e0e\u5b9e\u73b0\u539f\u7406<\/li>\n<li>StarRocks \u793e\u533a\u6e56\u4ed3\u5206\u6790\u672a\u6765\u89c4\u5212<\/li>\n<\/ol>\n<\/blockquote>\n<p><a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=jwcwqsILqymotKyXn%2Bkgiw%3D%3D.mekgJ5FaU17m3ElXBzdFSroXK%2BhmYmTgPMwnS%2FNOoYu%2FM6ZAaIlTRE6XY2bZr%2FjDDE695h3Og5q6%2BWi6hVVccAnYHEME2Zet9%2Bw7MMNfDaoftETwQOj6L0u7ni%2F35Aly67bed8BLYMiFEi7jVoS%2BjA%3D%3D\" rel=\"noopener noreferrer\">\u70b9\u51fb\u67e5\u770b\u539f\u6587\u89c6\u9891 &#038; \u6f14\u8bb2PPT<\/a><\/p>\n<h2>\u4e00\u3001\u4f20\u7edf\u6570\u636e\u4ed3\u5e93\u5206\u6790\u5b9e\u73b0\u65b9\u6848\u7b80\u4ecb<\/h2>\n<p>\u4f20\u7edf\u6570\u636e\u4ed3\u5e93\u5206\u6790\u7684\u5b9e\u73b0\u662f\u4e00\u4e2a\u5178\u578b Lambda \u67b6\u6784\uff0c\u901a\u8fc7\u4e0b\u56fe\u6211\u4eec\u53ef\u4ee5\u770b\u51fa\u4f20\u7edf\u67b6\u6784\u4e3b\u8981\u5206\u4e3a\u4e24\u5c42\uff1a\u4e0a\u5c42\u662f\u5b9e\u65f6\u94fe\u8def\u5c42\uff0c\u4e0b\u5c42\u662f\u79bb\u7ebf\u94fe\u8def\u5c42\u3002\u5b83\u4eec\u7684\u6570\u636e\u901a\u8fc7\u5de6\u4fa7\u7684\u6570\u636e\u6444\u5165\u5c42\uff0c\u901a\u8fc7\u4e0d\u540c\u8def\u5f84\u5c06\u6570\u636e\u7edf\u4e00\u6574\u5408\u5230\u50cf Kafka \u8fd9\u6837\u7684\u6d88\u606f\u961f\u5217\u4e2d\u95f4\u4ef6\u4e2d\uff0c\u7136\u540e\u5c06\u6570\u636e\u5206\u4e3a\u4e24\u4efd\u76f8\u540c\u7684\u6570\u636e\uff0c\u5206\u522b\u7531\u5b9e\u65f6\u94fe\u8def\u548c\u6279\u91cf\u94fe\u8def\u8fdb\u884c\u5904\u7406\uff0c\u6700\u7ec8\u6c47\u603b\u5230\u6570\u636e\u670d\u52a1\u5c42\uff0c\u5b9e\u73b0\u5bf9\u7528\u6237\u63d0\u4f9b\u6570\u636e\u5206\u6790\u670d\u52a1\u7684\u80fd\u529b\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/ucc.alicdn.com\/gfbp4bwpctdbo_20230830_f817f7d6dd4a417d92e1f6782f689fb3.jpeg\" alt=\"1\" title=\"1\"><\/p>\n<p>Lambda \u67b6\u6784\u7684\u51fa\u73b0\u4e3b\u8981\u662f\u56e0\u4e3a\u7528\u6237\u5bf9\u4e8e\u5b9e\u65f6\u5206\u6790\u9700\u6c42\u7684\u51fa\u73b0\uff0c\u4ee5\u53ca\u6d41\u5904\u7406\u6280\u672f\u7684\u9010\u6e10\u6210\u719f\u3002\u4f46\u662f\u5b83\u4e5f\u6709\u4e00\u4e9b\u660e\u663e\u7684\u5f0a\u7aef\uff0c\u5982\u4e0a\u56fe\u6240\u793a\uff0c\u5b83\u9700\u8981\u7ef4\u62a4\u4e24\u5957\u7cfb\u7edf\uff0c\u8fd9\u5c31\u4f1a\u5bfc\u81f4\u90e8\u7f72\u6210\u672c\u548c\u4eba\u529b\u6210\u672c\u90fd\u4f1a\u589e\u52a0\u3002\u5f53\u4e1a\u52a1\u53d8\u66f4\u7684\u65f6\u5019\uff0c\u4e5f\u9700\u8981\u4fee\u6539\u4e24\u5957\u7cfb\u7edf\u6765\u9002\u5e94\u4e1a\u52a1\u7684\u53d8\u5316\u3002<\/p>\n<p>\u968f\u7740\u6d41\u5904\u7406\u6280\u672f\u7684\u9010\u6e10\u6210\u719f\uff0cLambda \u67b6\u6784\u4e4b\u540e\u53c8\u63a8\u51fa\u4e86 Kappa \u67b6\u6784\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/ucc.alicdn.com\/gfbp4bwpctdbo_20230830_67e0a41105c54bbeaedba3323cca58ec.jpeg\" alt=\"2\" title=\"2\" loading=\"lazy\"><\/p>\n<p>Kappa \u67b6\u6784\u662f\u4f7f\u7528\u6d41\u5904\u7406\u94fe\u8def\u6765\u4ee3\u66ff\u539f\u6765\u7684 Lambda \u67b6\u6784\uff0c\u56e0\u4e3a\u6d41\u5904\u7406\u7684\u6210\u719f\uff0c\u6240\u4ee5\u901a\u8fc7\u4e00\u5957\u7cfb\u7edf\u53bb\u5b8c\u6210\u5b9e\u65f6\u548c\u79bb\u7ebf\u7684\u8ba1\u7b97\u6210\u4e3a\u53ef\u80fd\u3002<\/p>\n<p>Kappa \u67b6\u6784\u6709\u4e00\u4e2a\u524d\u63d0\uff0c\u5b83\u8ba4\u4e3a\u5bf9\u4e8e\u5386\u53f2\u6570\u636e\u7684\u91cd\u590d\u8ba1\u7b97\uff0c\u5728\u975e\u5fc5\u8981\u7684\u60c5\u51b5\u4e0b\u662f\u4e0d\u7528\u8fdb\u884c\u7684\u3002\u8fd9\u5c31\u4f7f\u5f97\u5f53\u7528\u6237\u9700\u8981\u91cd\u65b0\u8ba1\u7b97\u5386\u53f2\u6570\u636e\u6216\u662f\u51fa\u73b0\u65b0\u4e1a\u52a1\u53d8\u52a8\u7684\u65f6\u5019\uff0c\u5f80\u5f80\u9700\u8981\u5c06\u6574\u4e2a\u6570\u636e\u6444\u5165\u9636\u6bb5\u7684\u8fc7\u7a0b\u91cd\u653e\u4e00\u6b21\u3002\u5728\u5927\u91cf\u6d88\u8d39\u5386\u53f2\u6570\u636e\u7684\u60c5\u51b5\u4e0b\uff0c\u5fc5\u7136\u9020\u6210\u8d44\u6e90\u6d6a\u8d39\uff0c\u5e76\u9047\u5230\u4e00\u4e9b\u74f6\u9888\u3002<\/p>\n<h2>\u4e8c\u3001Paimon+StarRocks \u6784\u5efa\u6e56\u4ed3\u4e00\u4f53\u6570\u636e\u5206\u6790\u5b9e\u73b0\u65b9\u6848<\/h2>\n<h3>2.1 \u6570\u636e\u6e56\u4e2d\u5fc3<\/h3>\n<p>\u7b2c\u4e00\u4e2a\u65b9\u6848\u662f Paimon \u548c StarRocks \u6784\u5efa\u6e56\u4ed3\u4e00\u4f53\u6570\u636e\u5206\u6790\u7684\u6570\u636e\u6e56\u4e2d\u5fc3\u65b9\u6848\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/ucc.alicdn.com\/gfbp4bwpctdbo_20230830_0c2349a467c847cea0e0390e005190fe.jpeg\" alt=\"3\" title=\"3\" loading=\"lazy\"><\/p>\n<p>StarRocks \u672c\u8eab\u662f\u4e00\u4e2a MPP \u7684\u6570\u636e\u5e93\uff0c\u540c\u65f6\u53ef\u4ee5\u5916\u63a5\u591a\u79cd\u683c\u5f0f\u7684\u6570\u636e\u6e56\u7ec4\u4ef6\uff0c\u53ef\u4ee5\u4ee5\u5355\u7eaf\u4f5c\u4e3a\u67e5\u8be2\u5f15\u64ce\u53bb\u5916\u63a5\u6570\u636e\u6e56\u7ec4\u4ef6\uff0c\u5b9e\u73b0\u67e5\u8be2\u529f\u80fd\u3002\u5982\u4e0a\u56fe\uff0c\u901a\u8fc7 StarRocks \u6216 Spark \u90fd\u53ef\u4ee5\u5bf9 ODS \u7b49\u6570\u636e\u5c42\u7684 Paimon \u7ec4\u4ef6\u8fdb\u884c\u67e5\u8be2\u3002<\/p>\n<p>\u5728\u8fd9\u4e2a\u67b6\u6784\u91cc\uff0cPaimon \u901a\u8fc7\u5bf9\u6570\u636e\u7684\u843d\u76d8\u548c\u7d22\u5f15\uff0c\u5f25\u8865\u4e86\u4e0a\u6587\u4ecb\u7ecd\u7684 Kappa \u67b6\u6784\u4e2d\u6d88\u606f\u961f\u5217\u4e2d\u95f4\u4ef6\u5728\u6570\u636e\u7684\u4fee\u6539\u3001\u56de\u6eaf\u3001\u67e5\u8be2\u7b49\u65b9\u9762\u7684\u4e0d\u8db3\uff0c\u4ece\u800c\u4f7f\u5f97\u8fd9\u4e2a\u67b6\u6784\u7684\u5bb9\u9519\u7387\u66f4\u9ad8\uff0c\u652f\u6301\u7684\u80fd\u529b\u4e5f\u66f4\u5e7f\u6cdb\u3002\u540c\u65f6\u5728\u6279\u5904\u7406\u65b9\u9762\uff0cPaimon \u4e5f\u53ef\u4ee5\u5b8c\u5168\u517c\u5bb9 HIVE \u7684\u80fd\u529b\u3002<\/p>\n<h3>2.2 \u52a0\u901f\u67e5\u8be2<\/h3>\n<p>\u7b2c\u4e8c\u4e2a\u65b9\u6848\u662f Paimon \u548c StarRocks \u6784\u5efa\u6e56\u4ed3\u4e00\u4f53\u6570\u636e\u5206\u6790\u7684\u52a0\u901f\u67e5\u8be2\u65b9\u6848\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/ucc.alicdn.com\/gfbp4bwpctdbo_20230830_b9926f1206154fa2b7e776a575b300e0.jpeg\" alt=\"4\" title=\"4\" loading=\"lazy\"><\/p>\n<p>\u5b83\u4e0e\u7b2c\u4e00\u4e2a\u65b9\u6848\u7684\u533a\u522b\u662f\u51e0\u4e4e\u6574\u4e2a\u7cfb\u7edf\u90fd\u7531 StarRocks \u5355\u72ec\u5b8c\u6210\u3002\u5f53\u6570\u636e\u63a5\u5165 Paimon\uff0c\u4f7f\u5b83\u4f5c\u4e3a ODS \u5c42\u4e4b\u540e\uff0c\u901a\u8fc7 StarRocks \u7684\u5916\u8868\u7279\u6027\u6765\u8bfb\u53d6 Paimon \u4e0a\u7684\u6570\u636e\uff0c\u5efa\u7acb\u4e00\u5c42\u7269\u5316\u89c6\u56fe\u6765\u4f5c\u4e3a DWD \u5c42\u3002<\/p>\n<p>StarRocks \u7684\u7269\u5316\u89c6\u56fe\u5177\u6709\u4e00\u5b9a\u7684 ETL \u7684\u80fd\u529b\uff0c\u5f53\u5b83\u4f5c\u4e3a DWD \u5c42\u4e4b\u540e\uff0c\u53c8\u901a\u8fc7\u7b2c\u4e8c\u5c42\u5d4c\u5957\u7269\u5316\u89c6\u56fe\u6765\u4f5c\u4e3a DWS \u5c42\uff0c\u6700\u7ec8\u63d0\u4f9b\u7ed9\u6570\u636e\u670d\u52a1\u5c42\u8fdb\u884c\u6570\u636e\u5206\u6790\u3002<\/p>\n<p>\u901a\u8fc7 StarRocks \u7684\u8fd9\u5957\u7cfb\u7edf\u914d\u5408 Paimon \u8fd9\u4e2a\u67b6\u6784\u7684\u4e24\u4e2a\u4f18\u70b9\u662f\uff1a<\/p>\n<ul>\n<li>\u7b80\u5316\u4e86\u8fd0\u7ef4\uff0c\u56e0\u4e3a\u5b83\u4e0d\u7528\u518d\u53bb\u7ef4\u62a4\u5404\u79cd\u7ec4\u4ef6\uff0c\u53ea\u9700\u8981 StarRocks \u548c Paimon \u5c31\u53ef\u4ee5\u5b8c\u6210\u6570\u636e\u5206\u6790\u65b9\u6848\u7684\u6784\u5efa\uff1b<\/li>\n<li>\u67e5\u8be2\u901f\u5ea6\u5feb\uff0c\u56e0\u4e3a StarRocks \u662f\u4e00\u5957\u4ece\u6784\u5efa\u7d22\u5f15\u3001\u6570\u636e\u5b58\u50a8\u3001\u67e5\u8be2\u4f18\u5316\u90fd\u81ea\u6210\u4f53\u7cfb\u7684\u4e00\u4e2a\u6570\u636e\u6e56\u5f15\u64ce\uff0c\u6240\u4ee5\u5b83\u76f8\u6bd4\u4e0a\u6587\u4ecb\u7ecd\u7684\u5176\u4ed6\u5404\u79cd\u67e5\u8be2\u5f15\u64ce\u901f\u5ea6\u66f4\u5feb\u3002<\/li>\n<\/ul>\n<h3>2.3 \u7269\u5316\u89c6\u56fe<\/h3>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/ucc.alicdn.com\/gfbp4bwpctdbo_20230830_8e07b6d8931d47dea7b57f8fce764f2b.jpeg\" alt=\"5\" title=\"5\" loading=\"lazy\"> <\/p>\n<p>\u4e0a\u56fe\u53f3\u4fa7 SQL \u662f\u63cf\u8ff0\u5982\u4f55\u5efa\u7acb\u4e00\u4e2a StarRocks \u5f02\u6b65\u7269\u5316\u89c6\u56fe\u3002\u5b83\u4e3b\u8981\u6709\u4ee5\u4e0b\u51e0\u4e2a\u7279\u70b9\uff1a<\/p>\n<ul>\n<li>\u901a\u8fc7 SQL \u5b9a\u4e49\uff0c\u4e0a\u624b\u7b80\u5355\uff0c\u65b9\u4fbf\u7ef4\u62a4\uff1b<\/li>\n<li>\u9884\u8ba1\u7b97\uff0c\u964d\u4f4e\u67e5\u8be2\u5ef6\u65f6\uff0c\u51cf\u5c11\u91cd\u590d\u8ba1\u7b97\u5f00\u9500\uff1b<\/li>\n<li>\u81ea\u52a8\u67e5\u8be2\u8def\u7531\uff0c\u65e0\u9700\u6539\u5199 SQL\uff0c\u900f\u660e\u52a0\u901f\uff1b<\/li>\n<li>\u652f\u6301\u5f02\u6b65\u81ea\u52a8\u5237\u65b0\u6570\u636e\uff0c\u5b9a\u65f6\u5237\u65b0\uff0c\u667a\u80fd\u6309\u5206\u533a\u5237\u65b0\uff1b<\/li>\n<li>\u652f\u6301\u591a\u8868\u6784\u5efa\uff0c\u57fa\u8868\u53ef\u6765\u81ea\u5185\u8868\u3001\u5916\u8868\u548c\u5df2\u6709\u7684\u7269\u5316\u89c6\u56fe\u3002<\/li>\n<\/ul>\n<h3>2.4 \u51b7\u70ed\u5206\u79bb<\/h3>\n<p>\u8fd9\u662f\u901a\u8fc7 Paimon + StarRocks \u5b9e\u73b0\u51b7\u70ed\u5206\u79bb\u7684\u7279\u6027\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/ucc.alicdn.com\/gfbp4bwpctdbo_20230830_bdfa20febe8b4d1eaf1242813f9cfbcb.jpeg\" alt=\"6\" title=\"6\" loading=\"lazy\"><\/p>\n<p>\u51b7\u70ed\u5206\u79bb\u7684\u6982\u5ff5\uff0c\u662f\u5e0c\u671b\u53ef\u4ee5\u5c06\u7ecf\u5e38\u67e5\u8be2\u7684\u70ed\u6570\u636e\u5b58\u50a8\u5230\u67e5\u8be2\u5feb\u7684\u50cf StarRocks \u8fd9\u79cd OLAP \u5f15\u64ce\u4e0a\uff0c\u4e0d\u7ecf\u5e38\u67e5\u8be2\u7684\u51b7\u6570\u636e\u5b58\u50a8\u5230\u6bd4\u8f83\u5ec9\u4ef7\u7684\u8fdc\u7a0b\u6587\u4ef6\u5b58\u50a8\u7ec4\u4ef6\uff0c\u6bd4\u5982 OSS \u548c HDFS\u3002<\/p>\n<p>\u5982\u4e0a\u56fe Paimon + StarRocks \u51b7\u70ed\u5206\u79bb\u7684\u4f8b\u5b50\uff0c\u5982\u679c\u6784\u5efa\u4e86\u8fd9\u6837\u4e00\u4e2a\u51b7\u70ed\u5206\u79bb\u7684 MV \u8868\uff0c\u5f53\u67e5\u8be2\u5230\u8fd9\u5f20\u8868\u7684\u65f6\u5019\uff0c\u4f1a\u81ea\u52a8\u9009\u62e9\u5728 StarRocks \u4e0a\u5206\u5e03\u7684\u8fd9\u4e2a\u70ed\u6570\u636e\u548c\u5728 Paimon \u5206\u5e03\u7684\u51b7\u6570\u636e\u3002\u7136\u540e\u5bf9\u67e5\u8be2\u7ed3\u679c\u5408\u5e76\uff0c\u5e76\u8fd4\u56de\u7ed9\u7528\u6237\u3002<\/p>\n<h2>\u4e09\u3001StarRocks \u4e0e Paimon \u7ed3\u5408\u7684\u4f7f\u7528\u65b9\u5f0f\u4e0e\u5b9e\u73b0\u539f\u7406<\/h2>\n<h3>3.1 Paimon \u5916\u8868\u4f7f\u7528<\/h3>\n<p>\u5f97\u76ca\u4e8e StarRocks \u5bf9\u5916\u8868 Catalog \u7684\u62bd\u8c61\uff0c\u5728 Paimon \u63a8\u51fa\u4e0d\u4e45\uff0cStarRocks \u5c31\u4ee5\u5b9e\u73b0\u76f8\u5e94\u63a5\u53e3\u7684\u65b9\u5f0f\uff0c\u5b9e\u73b0\u4e86\u5bf9\u4e8e Paimon \u5916\u8868\u7684\u652f\u6301\u3002\u5728\u5bf9\u63a5 Paimon \u5916\u8868\u65f6\uff0c\u53ea\u9700\u8981\u5728 StarRocks \u4e0a\u6267\u884c\u4e0b\u9762\u8fd9\u6761 Create External Catalog \u8bed\u53e5\uff0c\u5bf9 Type \u6307\u5b9a\u4e3a Paimon\uff0c\u586b\u5199\u4e0a\u5bf9\u5e94\u7684\u8def\u5f84\u4e4b\u540e\u5c31\u53ef\u4ee5\u76f4\u63a5\u67e5\u8be2 Paimon \u4e2d\u7684\u6570\u636e\u4e86\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/ucc.alicdn.com\/gfbp4bwpctdbo_20230830_75f2fd4244954fd4a376e80038721f60.jpeg\" alt=\"7\" title=\"7\" loading=\"lazy\"><\/p>\n<h3>3.2 JNI Connector<\/h3>\n<p>JNI Connector \u662f\u4f7f\u5f97 StarRocks \u548c Paimon \u7ed3\u5408\u7684\u4e00\u4e2a\u6bd4\u8f83\u91cd\u8981\u7684\u7279\u6027\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/ucc.alicdn.com\/gfbp4bwpctdbo_20230830_9448a8fc5b934ebd865f709cdf2e6412.jpeg\" alt=\"8\" title=\"8\" loading=\"lazy\"><\/p>\n<p>JNI Connector \u7684\u80cc\u666f\u662f StarRocks \u5bf9\u4e8e\u6570\u636e\u5904\u7406\u7684\u7ec4\u4ef6\u662f C++ \u7a0b\u5e8f\u7f16\u5199\u7684\uff0c\u4f46\u662f\u6570\u636e\u6e56\u7ec4\u4ef6\u63d0\u4f9b\u7684 SDK \u5927\u591a\u6570\u662f Java \u7684\uff0c\u6ca1\u6709 C++ \u7684 SDK\uff0c\u5982\u679c StarRocks \u60f3\u8981\u901a\u8fc7 BE \u8bbf\u95ee\u6570\u636e\u6e56\u7ec4\u4ef6\u5e95\u5c42\u6570\u636e\u7684\u8bdd\uff0c\u53ea\u80fd\u8bbf\u95ee\u5b83\u539f\u751f\u7684 ORC\/Parquet \u7b49\u683c\u5f0f\uff0c\u65e0\u6cd5\u5e94\u7528\u8fd9\u4e9b\u7ec4\u4ef6\u6240\u63d0\u4f9b\u7684\u9ad8\u7ea7\u529f\u80fd\u3002<\/p>\n<p>JNI Connector \u662f\u4e00\u4e2a\u62bd\u8c61\u7684\uff0c\u9488\u5bf9\u6240\u6709\u5916\u8868 Java SDK \u90fd\u53ef\u4ee5\u9002\u7528\u7684 Connector\u3002\u5b83\u7528\u4e8e StarRocks \u7684 BE \u7ec4\u4ef6\u4e0a\uff0c\u662f\u5904\u4e8e BE \u548c\u6570\u636e\u6e56\u7ec4\u4ef6 Java SDK \u4e4b\u95f4\u7684\u4e2d\u95f4\u5c42\u3002<\/p>\n<p>JNI Connector \u7684\u4e3b\u8981\u529f\u80fd\u662f\u8c03\u7528\u6570\u636e\u6e56\u7ec4\u4ef6\u7684 Java SDK \u53bb\u8bfb\u53d6\u6570\u636e\u6e56\u7684\u6570\u636e\uff0c\u7136\u540e\u5c06\u8bfb\u53d6\u5230\u7684\u6570\u636e\u4ee5 StarRocks \u7684 BE \u53ef\u8bc6\u522b\u7684\u5185\u5b58\u6392\u5217\u65b9\u5f0f\u5199\u5165\u5230\u4e00\u5757\u5806\u5916\u5185\u5b58\u4e0a\uff0c\u7136\u540e\u5c06\u8fd9\u4e2a\u5185\u5b58\u4ea4\u63a5\u7ed9 BE C++\u7a0b\u5e8f\u53bb\u8fd0\u884c\uff0c\u8fd9\u6837\u5c31\u4f7f\u5f97\u5b83\u53ef\u4ee5\u5c06 BE \u548c Java SDK \u8fdb\u884c\u8854\u63a5\u3002<\/p>\n<p>JNI Connector \u6709\u4ee5\u4e0b\u51e0\u4e2a\u7279\u70b9\uff1a<\/p>\n<ul>\n<li>\u5feb\u901f\u63a5\u5165\u5404\u7c7b Java \u6570\u636e\u6e90\uff0c\u65e0\u9700\u8003\u8651\u6570\u636e\u8f6c\u6362\uff1b<\/li>\n<li>\u63d0\u4f9b\u7b80\u5355\u6613\u7528\u7684 Java \u63a5\u53e3\uff1b<\/li>\n<li>\u5df2\u652f\u6301 Hudi MOR Table\uff0cPaimon Table\uff1b<\/li>\n<li>\u652f\u6301 Struct, Map, Array \u590d\u6742\u7c7b\u578b\uff1b<\/li>\n<li>BE \u4ee3\u7801\u96f6\u4fb5\u5165\uff0c\u4e0d\u9700\u8981\u8003\u8651 C++\u5177\u4f53\u5b9e\u73b0\u3002<\/li>\n<\/ul>\n<p>\u4e0b\u56fe\u662f JNI Connector \u5f53\u4e2d\u4e00\u4e9b\u7ec6\u8282\u7684\u4ecb\u7ecd\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/ucc.alicdn.com\/gfbp4bwpctdbo_20230830_3c3508a2cc894df897d6112dbd762200.jpeg\" alt=\"9\" title=\"9\" loading=\"lazy\"><\/p>\n<p>\u4e0a\u9762\u662f\u5b9a\u957f\u5b57\u6bb5\u5b58\u50a8\u683c\u5f0f\uff0c\u4e0b\u9762\u662f\u53d8\u957f\u5b57\u6bb5\u7684\u5b58\u50a8\u683c\u5f0f\u3002<\/p>\n<ul>\n<li>\n<p>\u5b9a\u957f\u5b57\u6bb5\u5b58\u50a8\u683c\u5f0f<\/p>\n<ul>\n<li>\u7b2c\u4e00\u90e8\u5206\u662f\u5bf9\u4e8e\u8fd9\u4e00\u5217\u4e2d\u6bcf\u4e00\u884c\u6570\u636e\u662f\u5426\u4e3a Null \u7684\u5b9a\u4e49\u3002<\/li>\n<li>\u7b2c\u4e8c\u90e8\u5206\u662f\u6570\u636e\u90e8\u5206\uff0c\u8fd9\u91cc\u5b58\u50a8\u5b9a\u957f\u7684\u5177\u4f53\u7684\u6570\u636e\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u53d8\u957f\u5b57\u6bb5\u5b58\u50a8\u683c\u5f0f<\/p>\n<ul>\n<li>\u7b2c\u4e00\u90e8\u5206\u662f\u5bf9\u4e8e\u8fd9\u4e00\u5217\u4e2d\u6bcf\u4e00\u884c\u662f\u5426 Null \u7684\u6570\u7ec4\uff1b<\/li>\n<li>\u7b2c\u4e8c\u90e8\u5206\u662f\u63cf\u8ff0\u7b2c\u4e09\u90e8\u5206\u5177\u4f53\u6570\u636e\u4e2d\u6bcf\u4e00\u884c\u6570\u636e\u5f00\u59cb\u8bfb\u53d6\u7684\u8d77\u59cb\u5730\u5740\uff1b<\/li>\n<li>\u7b2c\u4e09\u90e8\u5206\u662f\u5177\u4f53\u6570\u636e\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u56db\u3001StarRocks \u793e\u533a\u6e56\u4ed3\u5206\u6790\u672a\u6765\u89c4\u5212<\/h2>\n<p>\u5f53\u524d StarRocks \u5df2\u7ecf\u652f\u6301\u4e86 Paimon \u7684\u4e00\u90e8\u5206\u7279\u6027\uff0c\u8fd8\u6709\u4e00\u4e9b\u6682\u672a\u5b9e\u73b0\u3002\u90a3\u4e48\u672a\u6765\u8ba1\u5212\u5b8c\u5584 Paimon \u8868\u5206\u6790\u7684\u7279\u6027\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>\u652f\u6301\u5206\u6790\u590d\u6742\u7c7b\u578b<\/li>\n<li>\u652f\u6301\u5217\u7edf\u8ba1\u4fe1\u606f<\/li>\n<li>\u652f\u6301\u5143\u6570\u636e\u7f13\u5b58<\/li>\n<li>\u652f\u6301 time travel<\/li>\n<li>\u652f\u6301\u57fa\u4e8e Paimon \u5916\u8868\u7684\u6d41\u5f0f\u7269\u5316\u89c6\u56fe<\/li>\n<\/ul>\n<h2>Q&#038;A<\/h2>\n<p>Q\uff1a\u8bf7\u95ee\u7269\u5316\u89c6\u56fe\u5982\u4f55\u505a\u5230\u6709\u6548\u7ba1\u7406\uff1f<\/p>\n<p>A\uff1a\u7269\u5316\u89c6\u56fe\u5728\u5efa\u7acb\u4e4b\u540e\u662f\u53ef\u4ee5\u81ea\u52a8\u5237\u65b0\u548c\u8c03\u5ea6\u7684\uff0c\u4e0d\u9700\u8981\u4f9d\u8d56\u5916\u90e8\u7ec4\u4ef6\u53bb\u89e6\u53d1\u5237\u65b0\u3002\u67e5\u8be2\u6539\u5199\u80fd\u529b\u4f7f\u5f97\u7528\u6237\u53ef\u4ee5\u53ea\u67e5 base \u8868\uff0c\u4e0d\u9700\u8981\u53bb\u6307\u5b9a\u67e5\u67d0\u4e2a\u7269\u5316\u89c6\u56fe\u3002\u8fd9\u4e24\u4e2a\u7279\u6027\u51cf\u5c11\u4e86\u4e0d\u5c11\u7ba1\u7406\u65b9\u9762\u7684\u95ee\u9898\u3002\u800c\u5bf9\u4e8e\u7269\u5316\u89c6\u56fe\u4e0e base \u8868\u4e4b\u95f4\u3001\u4ee5\u53ca\u5d4c\u5957\u7269\u5316\u89c6\u56fe\u4e4b\u95f4\u7684\u4f9d\u8d56\u5173\u7cfb\uff0cEMR-Serverless-StarRocks \u540e\u7eed\u4f1a\u63a8\u51fa\u4e00\u4e2a\u4efb\u52a1\u8c03\u5ea6\u4e0e\u8868\u4f9d\u8d56\u5173\u7cfb\u7684 web \u5c55\u793a\u529f\u80fd\u3002<\/p>\n<p>Q\uff1aPaimon+StarRocks \u6e56\u4ed3\u4e00\u4f53\u6570\u636e\u5206\u6790\u65b9\u6848\uff0c\u5728\u6570\u636e\u5b89\u5168\uff0c\u6bd4\u5982\u8bbf\u95ee\u63a7\u5236\u3001\u6570\u636e\u5ba1\u8ba1\u7b49\uff0c\u662f\u5426\u6709\u5177\u4f53\u7684\u89c4\u5212\uff1f<\/p>\n<p>A\uff1a\u76ee\u524d\u6211\u4e86\u89e3\u5230\u7684 StarRocks \u5173\u4e8e\u6570\u636e\u7ba1\u7406\u6743\u9650\u662f\u57fa\u4e8e\u89d2\u8272\u5206\u914d\u7684\u67e5\u770b\u3001\u4fee\u6539\u7b49\u6743\u9650\uff0c\u5bf9\u4e8e\u4e0d\u540c\u89d2\u8272\u8d4b\u4e88\u4e0d\u540c\u6743\u9650\u3002\u53e6\u5916\uff0c\u5bf9\u4e8e OSS \u6216 HDFS \u4e0a\u7684\u6570\u636e\u4f1a\u6709\u5bf9\u5e94\u7684\u7ec4\u4ef6\u8ba4\u8bc1\u529f\u80fd\u3002<\/p>\n<p>Q\uff1a\u8bf7\u95ee\u4ee5 StarRocks \u4e3a\u4e3b\u4f53\u7684\u6e56\u4ed3\u4e00\u4f53\u67b6\u6784\u4e2d\uff0c\u5728\u4ece Paimon \u8bfb\u53d6\u6570\u636e\u4e4b\u540e\uff0c\u4f1a\u5199\u56de\u5230 Paimon \u5417\uff1f<\/p>\n<p>A\uff1a\u5728\u4ece Paimon \u8bfb\u53d6\u5b8c ODS \u5c42\u7684\u6570\u636e\u540e\uff0c\u4f1a\u6d41\u5165 StarRocks \u7684\u7269\u5316\u89c6\u56fe\uff0c\u4e4b\u540e\u662f\u4e00\u5c42\u5d4c\u5957\u7684 StarRocks \u7269\u5316\u89c6\u56fe\uff0c\u5e76\u4e0d\u4f1a\u5199\u56de\u5230 Paimon\u3002<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=GoYd4oaZzr2f48qANWWKgw%3D%3D.mBmlCjhVw1FIr70tFiiCcLmwY7C7CTq1P0Xfth0MIPz3RlyBQTZJWqkbEs6Fb2omlVo%2FbSk62v5RGvNmz1sa8uyFAK1hHE5z0If62puCPUkSS2yKc1rD3FM53WDnCdbtrwlRf6Epwmrvp49uQ8xNVA%3D%3D\" rel=\"noopener noreferrer\">\u70b9\u51fb\u67e5\u770b\u539f\u6587\u89c6\u9891 &#038; \u6f14\u8bb2PPT<\/a><\/p>\n<hr>\n<h3>\u66f4\u591a\u5185\u5bb9<\/h3>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/ucc.alicdn.com\/gfbp4bwpctdbo_20230518_4116f0d345704b99953e01018a7f526d.png\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<hr>\n<p><strong>\u6d3b\u52a8\u63a8\u8350<\/strong><\/p>\n<p>\u963f\u91cc\u4e91\u57fa\u4e8e Apache Flink \u6784\u5efa\u7684\u4f01\u4e1a\u7ea7\u4ea7\u54c1-\u5b9e\u65f6\u8ba1\u7b97 Flink \u7248\u73b0\u5f00\u542f\u6d3b\u52a8\uff1a<br \/>\u9996\u8d2d99\u5143\u5305\u6708\u8bd5\u7528\uff0c\u6709\u673a\u4f1a\u8d62\u53d6\u5b9a\u5236\u5468\u8fb9\u793c\u54c1\uff01 <br \/>\u4ea7\u54c1\u5b98\u7f51\uff1a<a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=dJ2MiYYwvLCpJnLyIRYFNw%3D%3D.assCl9mPIyzbzCIDtHEmIcDfclBobu%2B4gHloQts0OsQUs%2FNKDQHOHhHLzlXsmjeO\" rel=\"noopener noreferrer\">https:\/\/www.aliyun.com\/product\/bigdata\/sc<\/a><\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/ucc.alicdn.com\/pic\/developer-ecology\/gfbp4bwpctdbo_c7e132a4de9b4874be870930a7e2c101.png\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000044173121\">https:\/\/segmentfault.com\/a\/1190000044173121<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6458\u8981\uff1a\u672c\u6587\u6574\u7406\u81ea\u963f\u91cc\u4e91\u9ad8\u7ea7\u5f00\u53d1\u5de5\u7a0b\u5e08\u66fe\u5e86\u680b\uff08\u66e6\u4e50\uff09\u5728 Streaming Lakehouse Meetup \u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10008216","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10008216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10008216"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10008216\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10008216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10008216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10008216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}