{"id":10008178,"date":"2023-08-28T15:01:16","date_gmt":"2023-08-28T07:01:16","guid":{"rendered":"https:\/\/blog.itmax.cn\/?p=10008178"},"modified":"2023-08-28T15:01:16","modified_gmt":"2023-08-28T07:01:16","slug":"apache-celeborn-%e8%ae%a9-spark-%e5%92%8c-flink-%e6%9b%b4%e5%bf%ab%e6%9b%b4%e7%a8%b3%e6%9b%b4%e5%bc%b9%e6%80%a7","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10008178","title":{"rendered":"Apache Celeborn \u8ba9 Spark \u548c Flink \u66f4\u5feb\u66f4\u7a33\u66f4\u5f39\u6027"},"content":{"rendered":"<blockquote>\n<p>\u6458\u8981\uff1a\u672c\u6587\u6574\u7406\u81ea\u963f\u91cc\u4e91\/\u6570\u636e\u6e56 Spark \u5f15\u64ce\u8d1f\u8d23\u4eba\u5468\u514b\u52c7\uff08\u4e00\u9524\uff09\u5728 Streaming Lakehouse Meetup \u7684\u5206\u4eab\u3002\u5185\u5bb9\u4e3b\u8981\u5206\u4e3a\u4e94\u4e2a\u90e8\u5206\uff1a<\/p>\n<ol>\n<li>Apache Celeborn \u7684\u80cc\u666f<\/li>\n<li>Apache Celeborn\u2014\u2014\u5feb<\/li>\n<li>Apache Celeborn\u2014\u2014\u7a33<\/li>\n<li>Apache Celeborn\u2014\u2014\u5f39<\/li>\n<li>Evaluation<\/li>\n<\/ol>\n<\/blockquote>\n<p><a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=fdQhJTqBbyjnsuhYZ444VQ%3D%3D.QAae7%2BrSg23DYeoTQpZ6Byx4nG8%2BanJl2%2FfGzFnWyR3FfprKEGyXMeQDz6J%2B1ctCbCspNRlQj4RdfRqPZ2%2Fm9lTWTBXLVRqgYqiPAVjzAXc1BYCT5N58Sy%2FIY5bD%2B3SLDAE%2BF3y7K5K39fpr%2BL9CIQ%3D%3D\" rel=\"noopener noreferrer\">\u70b9\u51fb\u67e5\u770b\u539f\u6587\u89c6\u9891 &#038; \u6f14\u8bb2PPT<\/a><\/p>\n<h2>\u4e00\u3001\u80cc\u666f<\/h2>\n<p>\u5927\u6570\u636e\u5f15\u64ce\u7684\u4e2d\u95f4\u6570\u636e\u6709\u4e24\u4e2a\u6765\u6e90: Shuffle \u548c Spill\uff0c\u5176\u4e2d\u6700\u91cd\u8981\u7684\u662f Shuffle\uff0c\u636e\u7edf\u8ba1\u6709\u8d85\u8fc7 15%\u7684\u8d44\u6e90\u6d88\u8017\u5728 Shuffle\u3002<\/p>\n<h3>1.1 \u4f20\u7edf Shuffle \u7684\u95ee\u9898<\/h3>\n<p>\u4e0b\u56fe\u53f3\u4fa7\u7ed3\u6784\u56fe\u662f\u4f20\u7edf Shuffle \u7684\u8fc7\u7a0b\uff0c\u5de6\u8fb9\u662f Mapper Task\uff0c\u57fa\u4e8e Partition ID \u5bf9 Shuffle \u6570\u636e\u6392\u5e8f\uff0c\u7136\u540e\u5199\u5230\u672c\u5730\u76d8\uff0c\u540c\u65f6\u4f1a\u5199\u4e00\u4e2a\u7d22\u5f15\u6587\u4ef6\uff0c\u4ee5\u8bb0\u5f55\u6587\u4ef6\u91cc\u5c5e\u4e8e\u6bcf\u4e00\u4e2a Partition \u7684 offset \u548c length\u3002\u5728 Reduce Task \u542f\u52a8\u7684\u65f6\u5019\uff0c\u9700\u8981\u4ece\u6bcf\u4e00\u4e2a Shuffle \u6587\u4ef6\u91cc\u8bfb\u53d6\u5c5e\u4e8e\u81ea\u5df1\u7684\u6570\u636e\u3002<\/p>\n<p>\u4ece Shuffle \u6587\u4ef6\u7684\u89d2\u5ea6\u6765\u770b\uff0c\u5b83\u63a5\u6536\u5927\u91cf\u5e76\u53d1\u7684\u8bfb\u8bf7\u6c42\uff0c\u4e14\u8fd9\u4e9b\u8bf7\u6c42\u6240\u8bfb\u7684\u6570\u636e\u662f\u968f\u673a\u7684\uff0c\u8fd9\u5c31\u4f1a\u5e26\u6765\u968f\u673a\u7684\u78c1\u76d8 I\/O\u3002<\/p>\n<p>\u53e6\u5916\u4e00\u65b9\u9762\uff0c\u4ece\u4e0b\u56fe\u4e5f\u53ef\u4ee5\u770b\u5230\u7f51\u7edc\u7684\u8fde\u63a5\u6570\u4e5f\u975e\u5e38\u591a\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044155187\" alt=\"1\" title=\"1\"> <\/p>\n<p>\u603b\u7ed3\u800c\u8a00\uff0cShuffle \u7b97\u5b50\u975e\u5e38\u91cd\u8981\uff0c\u4f46\u662f\u4e5f\u5b58\u5728\u4e00\u4e9b\u95ee\u9898\uff1a<\/p>\n<ul>\n<li>\u4f5c\u4e3a\u6700\u91cd\u8981\u7684\u7b97\u5b50\uff0c\u8d44\u6e90\u6d88\u8017\u8d85\u8fc7 15%\uff1b<\/li>\n<li>\u9ad8\u7f51\u7edc\u8fde\u63a5\u3001\u968f\u673a\u78c1\u76d8 I\/O \u548c I\/O \u653e\u5927\uff0c\u4f7f\u5f97\u5176\u4e0d\u591f\u9ad8\u6548\uff1b<\/li>\n<li>Fetch Failure \u548c OOM\uff0c\u5bfc\u81f4\u5176\u4e0d\u591f\u7a33\u5b9a\uff1b<\/li>\n<li>\u4f9d\u8d56\u5927\u5bb9\u91cf\u672c\u5730\u78c1\u76d8\uff0c\u65e0\u6cd5\u5b58\u7b97\u5206\u79bb\u3002<\/li>\n<\/ul>\n<h4>1.2 Apache Celeborn \u7684\u4ecb\u7ecd<\/h4>\n<p>Apache Celeborn \u662f\u4e3a\u4e86\u89e3\u51b3\u4e0a\u8ff0 Shuffle \u7684\u95ee\u9898\uff0c\u5b9a\u4f4d\u662f\u7edf\u4e00\u4e2d\u95f4\u6570\u636e\u670d\u52a1\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044155188\" alt=\"2\" title=\"2\" loading=\"lazy\">  <\/p>\n<p>Apache Celeborn \u5177\u6709\u4e24\u4e2a\u7ef4\u5ea6\uff1a<\/p>\n<ul>\n<li>\u7b2c\u4e00\uff0c\u5f15\u64ce\u65e0\u5173\u3002\u5b98\u65b9\u5df2\u7ecf\u5b9e\u73b0\u4e86 Spark \u548c Flink\u3002\u5f53\u524d\u6211\u4eec\u4e5f\u5728\u505a MR \u548c Tez \u7684\u96c6\u6210\u3002<\/li>\n<li>\u7b2c\u4e8c\uff0c\u4e2d\u95f4\u6570\u636e\u3002\u8fd9\u91cc\u662f\u6307\u5305\u62ec Shuffle \u548c Spill Data\u3002\u5f53\u6211\u4eec\u628a\u4e2d\u95f4\u6570\u636e\u5168\u90e8\u6258\u7ba1\uff0c\u5b83\u7684\u8ba1\u7b97\u8282\u70b9\u5c31\u4e0d\u9700\u8981\u8fd9\u4e48\u5927\u7684\u672c\u5730\u76d8\u4e86\uff0c\u4e5f\u5c31\u610f\u5473\u7740\u8ba1\u7b97\u8282\u70b9\u53ef\u4ee5\u505a\u5230\u771f\u6b63\u7684\u65e0\u72b6\u6001\uff0c\u8fd9\u5c31\u53ef\u4ee5\u5b9e\u73b0\u5728\u4f5c\u4e1a\u8fd0\u884c\u7684\u8fc7\u7a0b\u4e2d\u505a\u5230\u66f4\u597d\u7684\u4f38\u7f29\uff0c\u4ece\u800c\u83b7\u5f97\u66f4\u597d\u7684\u5f39\u6027\u548c\u8d44\u6e90\u4f7f\u7528\u7387\u3002<\/li>\n<\/ul>\n<p>Apache Celeborn \u7684\u53d1\u5c55\u53f2\uff1a<\/p>\n<ul>\n<li>2020 \u5e74\uff0c\u8bde\u751f\u4e8e\u963f\u91cc\u4e91\uff1b<\/li>\n<li>2021 \u5e74 12 \u6708\uff0c\u5bf9\u5916\u5f00\u6e90\uff0c\u540c\u5e74\u505a\u5230\u4e91\u4e0a\u5f00\u53d1\u8005\u5171\u5efa\uff0c\u6784\u5efa\u591a\u5143\u5316\u793e\u533a\uff1b<\/li>\n<li>2022 \u5e74 10 \u6708\uff0c\u8fdb\u5165 Apache \u5b75\u5316\u5668\u3002<\/li>\n<\/ul>\n<h3>\u4e8c\u3001Apache Celeborn\u2014\u2014\u5feb<\/h3>\n<p>Apache Celeborn \u7684\u5feb\uff0c\u5c06\u4ece\u56db\u4e2a\u89d2\u5ea6\u5c55\u5f00\u4ecb\u7ecd\uff1a<\/p>\n<ul>\n<li>\u6838\u5fc3\u8bbe\u8ba1<\/li>\n<li>\u5217\u5f0f Shuffle<\/li>\n<li>\u5411\u91cf\u5316\u5f15\u64ce<\/li>\n<li>\u591a\u5c42\u5b58\u50a8<\/li>\n<\/ul>\n<h4>2.1 \u6838\u5fc3\u8bbe\u8ba1\uff1aPush\/\u805a\u5408\/Spilt<\/h4>\n<p>\u4ece\u4e0b\u56fe\u53ef\u89c1\uff0c\u5de6\u4fa7\u662f Apache Celeborn \u6700\u6838\u5fc3\u7684\u8bbe\u8ba1\uff0c\u672c\u8d28\u662f\u4e00\u79cd Push Shuffle \u548c Partition \u805a\u5408\u7684\u8bbe\u8ba1\u3002\u5b83\u4f1a\u628a\u540c\u4e00\u4e2a Partition \u6570\u636e\u63a8\u9001\u7ed9\u540c\u4e00\u4e2a Celeborn Worker\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044155189\" alt=\"3\" title=\"3\" loading=\"lazy\"> <\/p>\n<p>\u6b63\u5e38\u60c5\u51b5\u4e0b\uff0c\u6bcf\u4e00\u4e2a Partition \u7684\u6570\u636e\u90fd\u4f1a\u6700\u7ec8\u5f62\u6210\u4e00\u4e2a\u6587\u4ef6\uff0cReducer \u5728\u8bfb\u53d6\u7684\u65f6\u5019\u53ea\u9700\u8981\u4ece Worker \u4e0a\u8bfb\u53d6\u4e00\u4e2a\u6587\u4ef6\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u56e0\u4e3a Shuffle \u6570\u636e\u5b58\u5728 Celeborn Cluster \u91cc\uff0c\u4e0d\u9700\u8981\u5b58\u653e\u5728\u672c\u5730\u78c1\u76d8\uff0c\u6240\u4ee5\u53ef\u4ee5\u66f4\u597d\u7684\u505a\u5b58\u7b97\u5206\u79bb\u3002\u53e6\u5916\uff0c\u5b83\u662f Push Shuffle\uff0c\u4e0d\u9700\u8981\u5bf9\u5168\u91cf Shuffle \u505a\u6570\u636e\u6392\u5e8f\uff0c\u6240\u4ee5\u4e5f\u4e0d\u5b58\u5728\u5199\u653e\u5927\u7684\u95ee\u9898\u3002<\/p>\n<p>\u7b2c\u4e09\uff0c\u901a\u8fc7 Partition \u7684\u805a\u5408\u89e3\u51b3\u4e86\u7f51\u7edc\u548c\u78c1\u76d8 I\/O \u4f4e\u6548\u7684\u95ee\u9898\u3002<\/p>\n<p>\u4e0a\u56fe\u53f3\u4fa7\u7684\u67b6\u6784\u8868\u660e\uff0c\u6570\u636e\u503e\u659c\u5f88\u5e38\u89c1\uff0c\u5373\u4f7f\u5728\u975e\u503e\u659c\u7684\u60c5\u51b5\u4e0b\uff0c\u67d0\u4e00\u4e2a Partition \u7684\u6570\u636e\u7279\u522b\u5927\u4e5f\u662f\u5f88\u5bb9\u6613\u53d1\u751f\u7684\u3002\u8fd9\u5c31\u4f1a\u7ed9\u78c1\u76d8\u5e26\u6765\u8f83\u5927\u7684\u538b\u529b\u3002\u6240\u4ee5\u8fd9\u8fb9\u505a\u4e86\u4e00\u4e2a Split \u673a\u5236\u3002\u7b80\u5355\u6765\u8bb2\u5c31\u662f Celeborn Cluster \u4f1a\u68c0\u67e5\u67d0\u4e00\u4e2a\u6587\u4ef6\u7684\u5927\u5c0f\uff0c\u5982\u679c\u8d85\u8fc7\u4e86\u9608\u503c\u5c31\u4f1a\u89e6\u53d1 Split\uff0c\u4e5f\u5c31\u662f\u8bf4\u8fd9\u4e2a Partition \u6570\u636e\u6700\u7ec8\u4f1a\u751f\u6210\u591a\u4e2a Split \u6587\u4ef6\uff0cReduce Task \u4f1a\u4ece\u8fd9\u4e9b Split \u6587\u4ef6\u4e2d\u8bfb\u53d6 Partition \u7684\u6570\u636e\u3002<\/p>\n<h4>2.2 \u6838\u5fc3\u8bbe\u8ba1\uff1a\u5f02\u6b65<\/h4>\n<p>\u6211\u4eec\u5728\u5f88\u591a\u73af\u8282\u505a\u4e86\u5f02\u6b65\u5316\uff0c\u4e3a\u7684\u662f\u4e0d\u8bba\u5728\u5199\u3001\u8bfb\u8fd8\u662f Control Message \u8fc7\u7a0b\u4e2d\uff0c\u4e0d block \u8ba1\u7b97\u5f15\u64ce\u672c\u8eab\u7684\u8ba1\u7b97\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044155190\" alt=\"4\" title=\"4\" loading=\"lazy\">  <\/p>\n<p>\u5f02\u6b65\u5237\u76d8\uff0c\u65e0\u8bba\u662f\u53cc\u5907\u4efd\u8fd8\u662f\u5355\u5907\u4efd\uff0c\u5728 Worker \u7aef\u63a5\u6536\u5230\u6570\u636e\u540e\uff0c\u4e0d\u9700\u8981\u7b49\u5237\u76d8\u5c31\u53ef\u4ee5\u53d1 ACK\u3002\u5237\u76d8\u662f\u5f02\u6b65\u7684\uff0c\u5f53\u5c5e\u4e8e\u67d0\u4e2a Partition \u7684 Netty Buffer \u8fbe\u5230\u67d0\u4e2a\u9608\u503c\u540e\u89e6\u53d1\u5237\u76d8\uff0c\u4ece\u800c\u63d0\u5347\u5237\u76d8\u6548\u7387\u3002<\/p>\n<p>\u5f02\u6b65 Commit \u662f\u6307\u5728 Stage \u7ed3\u675f\u540e\u4f1a\u6709\u4e00\u4e2a Commit \u8fc7\u7a0b\uff0c\u7b80\u5355\u6765\u8bb2\u9700\u8981\u8ba9\u53c2\u4e0e Shuffle \u7684 Worker \u628a\u5185\u5b58\u6570\u636e\u5237\u76d8\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u4e5f\u662f\u5f02\u6b65\u7684\u3002<\/p>\n<p>\u5f02\u6b65 Fetch \u662f\u6bd4\u8f83\u5e38\u89c1\u7684\uff0c\u610f\u601d\u662f Partition \u6570\u636e\u751f\u6210\u4e86\u6587\u4ef6\uff0c\u5207\u6210\u5f88\u591a Chunk\uff0c\u90a3\u4e48\u5728 Fetch \u7684\u65f6\u5019\u53ef\u4ee5 Fetch \u591a\u4e2a Chunk\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u628a Fetch \u6570\u636e\u548c Reduce \u8ba1\u7b97 Pipeline \u8d77\u6765\u3002<\/p>\n<h4>2.3 \u5217\u5f0f Shuffle<\/h4>\n<p>Celeborn \u652f\u6301\u5217\u5f0f Shuffle\uff0c\u5199\u65f6\u505a\u884c\u4e13\u5217\uff0c\u8bfb\u65f6\u505a\u5217\u8f6c\u884c\u3002\u76f8\u6bd4\u4e8e\u884c\u5b58\uff0c\u5217\u5b58\u5177\u6709\u66f4\u9ad8\u7684\u538b\u7f29\u7387\uff0c\u6570\u636e\u91cf\u53ef\u4ee5\u51cf\u5c11 40%\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044155191\" alt=\"5\" title=\"5\" loading=\"lazy\">  <\/p>\n<p>\u4e3a\u4e86\u964d\u4f4e\u884c\u5217\u8f6c\u6362\u8fc7\u7a0b\u4e2d\u7684\u89e3\u91ca\u6267\u884c\u5f00\u9500\uff0cCeleborn \u5f15\u5165\u4e86 Code Generation \u7684\u6280\u672f\uff0c\u5982\u4e0a\u56fe\u53f3\u4fa7\u6240\u793a\u3002<\/p>\n<h4>2.4 \u5bf9\u63a5\u5411\u91cf\u5316\u5f15\u64ce<\/h4>\n<p>\u5927\u6570\u636e\u8ba1\u7b97\u5f15\u64ce\u7528 Native \u5411\u91cf\u5316\u63d0\u5347\u6027\u80fd\uff0c\u8fd9\u662f\u76ee\u524d\u7684\u4e00\u4e2a\u5171\u8bc6\u3002\u65e0\u8bba\u662f Spark \u8fd8\u662f\u522b\u7684\u5f15\u64ce\uff0c\u5927\u5bb6\u90fd\u5728\u5f80\u8fd9\u4e2a\u65b9\u5411\u63a2\u7d22\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044155192\" alt=\"6\" title=\"6\" loading=\"lazy\"> <\/p>\n<p>Gluten \u662f\u82f1\u7279\u5c14\u548c\u9e92\u9e9f\u8054\u5408\u53d1\u8d77\u7684\u9879\u76ee\uff0c\u80fd\u591f\u8ba9 Spark \u96c6\u6210\u5176\u4ed6\u7684 Native \u5f15\u64ce\u3002\u9664\u6b64\u4e4b\u5916\uff0cGluten \u8fd8\u505a\u4e86\u5185\u5b58\u7ba1\u7406\u548c Native Shuffle\uff0c\u5b83\u7684 Native Shuffle \u76f8\u6bd4\u539f\u751f\u7684 Java Shuffle \u66f4\u52a0\u9ad8\u6548\uff0c\u4f46\u5176\u6cbf\u7528\u4e86 ESS \u6846\u67b6\uff0c\u56e0\u800c\u5b58\u5728\u524d\u8ff0\u7684\u9650\u5236\u3002<\/p>\n<p>\u5f53 Celeborn \u793e\u533a\u548c Gluten \u793e\u533a\u5408\u4f5c\uff0c\u5c31\u53ef\u4ee5\u5c06\u4e24\u8005\u7684\u4f18\u52bf\u7ed3\u5408\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u505a\u5230\u4f18\u5316\u6b63\u4ea4\u3002<\/p>\n<h4>2.5 \u591a\u5c42\u5b58\u50a8<\/h4>\n<p>Shuffle \u6709\u5927\u6709\u5c0f\uff0c\u5bf9\u4e8e\u5c0f\u7684 Shuffle \u9700\u8981\u8d70\u4e00\u5c42\u7f51\u7edc\uff0c\u6548\u7387\u662f\u96be\u4ee5\u4fdd\u969c\u7684\u3002\u591a\u5c42\u5b58\u50a8\u4ece\u901a\u8fc7\u5185\u5b58\u7f13\u5b58\u8fdb\u884c\u4f18\u5316\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044155193\" alt=\"7\" title=\"7\" loading=\"lazy\"> <\/p>\n<p>\u591a\u5c42\u5b58\u50a8\u5b9a\u4e49\u4e86\u5185\u5b58\uff0c\u672c\u5730\u76d8\u548c\u5916\u90e8\u5b58\u50a8\uff0c\u5916\u90e8\u5b58\u50a8\u5305\u62ec HDFS \u6216 OSS\uff0c\u8bbe\u8ba1\u7406\u5ff5\u662f\u5c3d\u53ef\u80fd\u8ba9\u5c0f Shuffle \u7684\u6574\u4e2a\u751f\u547d\u5468\u671f\u90fd\u80fd\u8d2e\u5b58\u5728\u5185\u5b58\u91cc\uff0c\u5e76\u5c3d\u53ef\u80fd\u7684\u843d\u5728\u66f4\u5feb\u7684\u76d8\u91cc\u3002<\/p>\n<h3>\u4e09\u3001Apache Celeborn\u2014\u2014\u7a33<\/h3>\n<p>\u6709\u4e86 Celeborn \u7684\u6838\u5fc3\u8bbe\u8ba1\uff0c\u5927 Shuffle \u4f5c\u4e1a\u5728\u6027\u80fd\u548c\u7a33\u5b9a\u6027\u4e0a\u6709\u4e86\u5f88\u5927\u63d0\u5347\u3002Celeborn \u670d\u52a1\u81ea\u8eab\u7684\u7a33\u5b9a\u6027\uff0c\u53ef\u4ee5\u4ece\u56db\u4e2a\u89d2\u5ea6\u5c55\u5f00\uff1a<\/p>\n<ul>\n<li>\u5bb9\u9519<\/li>\n<li>\u5feb\u901f\u6eda\u52a8\u5347\u7ea7<\/li>\n<li>Traffic Control<\/li>\n<li>\u8d1f\u8f7d\u5747\u8861<\/li>\n<\/ul>\n<h4>3.1 \u5bb9\u9519<\/h4>\n<p>\u5982\u4e0b\u56fe\uff0c\u5728\u5bb9\u9519\u8fd9\u4e2a\u5c42\u9762\uff0c\u6211\u4eec\u505a\u4e86\u4ee5\u4e0b\u5de5\u4f5c\uff1a<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044155194\" alt=\"8\" title=\"8\" loading=\"lazy\"> <\/p>\n<p>\u4e0a\u56fe\u53f3\u4fa7\u63cf\u8ff0\u4e86 Revive \u673a\u5236\u3002Client \u63a8\u6570\u636e\u662f\u6700\u9ad8\u9891\u7684\u64cd\u4f5c\uff0c\u4e5f\u662f\u6700\u5bb9\u6613\u53d1\u751f\u9519\u8bef\u7684\u5730\u65b9\u3002\u5f53 Push \u5931\u8d25\uff0c\u6211\u4eec\u91c7\u53d6\u4e86\u6bd4\u8f83\u5bbd\u5bb9\u7684\u7b56\u7565\uff0c\u5c06\u8fd9\u6b21\u63a8\u9001\u8ba4\u4e3a\u662f Worker \u77ed\u6682\u4e0d\u53ef\u7528\uff0c\u53ea\u9700\u8981\u628a\u5c06\u6765\u7684\u6570\u636e\u63a8\u9001\u5230\u522b\u7684 Worker \u4e0a\u5c31\u53ef\u4ee5\u4e86\uff0c\u8fd9\u5c31\u662f Revive \u673a\u5236\u7684\u6838\u5fc3\u3002<\/p>\n<p>\u53f3\u4fa7\u4e0b\u9762\u7684 Batch Revive \u662f\u9488\u5bf9 Revive \u673a\u5236\u7684\u4e00\u4e2a\u4f18\u5316\u3002\u4e5f\u5c31\u662f\u8bf4\u5f53 Worker \u4e0d\u53ef\u7528\uff0c\u6240\u6709\u5f80\u8fd9\u4e2a Worker \u4e0a\u63a8\u9001\u7684\u6570\u636e\u8bf7\u6c42\u90fd\u4f1a\u5931\u8d25\uff0c\u90a3\u4e48\u5c31\u4f1a\u4ea7\u751f\u5927\u91cf\u7684 Revive \u8bf7\u6c42\uff0c\u4e3a\u4e86\u964d\u4f4e\u8fd9\u4e9b\u8bf7\u6c42\u7684\u6570\u91cf\uff0c\u6211\u4eec\u5bf9 Revive \u505a\u4e86 Batch\uff0cBatch \u5316\u4e4b\u540e\u5c31\u53ef\u4ee5\u6279\u91cf\u7684\u5904\u7406\u9519\u8bef\u3002<\/p>\n<p>\u5173\u4e8e\u78c1\u76d8\u9632\u7206\u4e0a\u6587\u4e5f\u63d0\u53ca\u8fc7\uff0c\u6211\u4eec\u4f1a\u68c0\u6d4b\u5355\u4e2a\u6587\u4ef6\u5927\u5c0f\uff0c\u5e76\u8ba9\u5176\u5207\u5206\u3002\u53e6\u5916\u8fd8\u4f1a\u68c0\u67e5\u5f53\u524d\u78c1\u76d8\u7684\u53ef\u7528\u5bb9\u91cf\u662f\u5426\u8db3\u591f\uff0c\u5982\u679c\u4e0d\u8db3\u4f1a\u89e6\u53d1 Split\u3002<\/p>\n<h4>3.2 \u5feb\u901f\u6eda\u52a8\u5347\u7ea7<\/h4>\n<p>\u4e0b\u56fe\u8be6\u7ec6\u7684\u4ecb\u7ecd\u4e86 Celeborn Worker \u9700\u8981\u6eda\u52a8\u5347\u7ea7\u7684\u65f6\u5019\uff0c\u662f\u600e\u4e48\u6837\u5728\u4e0d\u5f71\u54cd\u5f53\u524d\u8fd0\u884c\u4f5c\u4e1a\u7684\u60c5\u51b5\u4e0b\u5b8c\u6210\u6eda\u52a8\u5347\u7ea7\u7684\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044155195\" alt=\"9\" title=\"9\" loading=\"lazy\"> <\/p>\n<p>Worker \u89e6\u53d1\u4f18\u96c5\u505c\u673a\u540e\uff0c\u628a\u72b6\u6001\u544a\u8bc9 Master\uff0cMaster \u5c31\u4e0d\u4f1a\u7ee7\u7eed\u5f80 Worker \u4e0a\u5206\u914d\u8d1f\u8f7d\uff0c\u540c\u65f6 Worker \u4e0a\u6b63\u5728\u670d\u52a1\u7684 Partition \u8bf7\u6c42\u4f1a\u6536\u5230\u4e00\u4e2a HardSplit \u6807\u8bb0\uff0c\u7136\u540e\u89e6\u53d1 Revive\uff0cClient \u5c31\u4e0d\u4f1a\u518d\u5f80\u8fd9\u91cc\u63a8\u9001\u6570\u636e\uff0c\u540c\u65f6\u4f1a\u7ed9 Worker \u53d1\u4e00\u4e2a CommitFile\uff0c\u89e6\u53d1\u5185\u5b58\u7684\u6570\u636e\u7684\u5237\u76d8\u3002\u8fd9\u4e2a\u65f6\u5019 Worker \u4e0d\u4f1a\u6536\u5230\u65b0\u7684\u8d1f\u8f7d\uff0c\u8001\u7684\u8d1f\u8f7d\u4e5f\u4e0d\u4f1a\u88ab\u63a8\u9001\uff0c\u5185\u5b58\u7684\u6570\u636e\u4e5f\u5168\u90e8\u90fd\u5199\u5165\u78c1\u76d8\u4e86\u3002\u6b64\u65f6 Worker \u628a\u5185\u5b58\u72b6\u6001\u5b58\u50a8\u5230\u672c\u5730\u7684 LevelDB \u540e\uff0c\u5c31\u53ef\u4ee5\u5b89\u5168\u9000\u51fa\u4e86\u3002\u91cd\u542f\u4e4b\u540e\uff0c\u4ece LevelDB \u4e2d\u8bfb\u53d6\u72b6\u6001\uff0c\u7ee7\u7eed\u63d0\u4f9b\u670d\u52a1\u4e86\u3002<\/p>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u7684\u8fd9\u79cd\u673a\u5236\uff0c\u53ef\u4ee5\u505a\u5230\u5feb\u901f\u6eda\u52a8\u5347\u7ea7\u3002<\/p>\n<h4>3.3 Traffic Control<\/h4>\n<p>Traffic Control \u7684\u76ee\u7684\u662f\u4e0d\u8981\u6253\u7206 Worker \u7684\u5185\u5b58\uff0c\u4e5f\u4e0d\u5e0c\u671b\u6253\u7206 Client \u7684\u5185\u5b58\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u8fd9\u91cc\u9762\u63d0\u4f9b\u4e86\u4e09\u4e2a\u673a\u5236\uff1a<\/p>\n<p>\u7b2c\u4e00\uff0c\u53cd\u538b\u673a\u5236\u3002\u4ece Worker \u89d2\u5ea6\u6765\u8bb2\uff0c\u6570\u636e\u6765\u6e90\u6709\u4e24\u4e2a\uff0c\u4e00\u662f Mapper \u63a8\u7ed9\u5b83\u7684\u6570\u636e\uff0c\u4e8c\u662f\u5982\u679c\u5f00\u542f\u4e24\u4e2a\u526f\u672c\uff0c\u90a3\u4e48\u4e3b\u526f\u672c\u4f1a\u5f80\u4ece\u526f\u672c\u53d1\u9001\u6570\u636e\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044155196\" alt=\"10\" title=\"10\" loading=\"lazy\">  <\/p>\n<p>\u90a3\u4e48\u5f53\u5185\u5b58\u8fbe\u5230\u8b66\u6212\u7ebf\uff0c\u5c31\u4f1a\u505c\u6b62\u6570\u636e\u6e90\u5934\u63a8\u9001\u6570\u636e\uff0c\u540c\u65f6\u8fd8\u9700\u8981\u201c\u6cc4\u6d2a\u201d\uff0c\u628a\u5185\u5b58\u5378\u4e0b\u6765\u3002<\/p>\n<p>\u7b2c\u4e8c\uff0c\u62e5\u585e\u63a7\u5236\u3002\u5728 Shuffle Client \u7aef\u91c7\u7528\u7c7b\u4f3c TCP \u7684\u62e5\u585e\u63a7\u5236\u4e3b\u52a8\u63a7\u5236\u63a8\u9001\u6570\u636e\u7684\u901f\u7387\uff0c\u907f\u514d\u77ac\u65f6\u6d41\u91cf\u628a Worker \u5185\u5b58\u6253\u7206\u3002<\/p>\n<p>\u4e00\u5f00\u59cb\u5904\u4e8e Slow Start \u7684\u72b6\u6001\uff0c\u63a8\u9001\u901f\u7387\u8f83\u4f4e\uff0c\u4f46\u662f\u901f\u7387\u589e\u957f\u5f88\u5feb\uff0c\u5f53\u8fbe\u5230\u62e5\u585e\u907f\u514d\u9636\u6bb5\uff0c\u901f\u7387\u589e\u957f\u4f1a\u53d8\u6162\u3002\u4e00\u65e6\u6536\u5230 Worker \u7aef\u62e5\u585e\u63a7\u5236\u7684\u4fe1\u53f7\uff0c\u5c31\u4f1a\u9a6c\u4e0a\u56de\u5230 Slow Start \u72b6\u6001\u3002Worker \u7aef\u4f1a\u8bb0\u5f55\u8fc7\u53bb\u4e00\u6bb5\u65f6\u95f4\u6765\u81ea\u5404\u4e2a\u7528\u6237\u6216\u662f\u5404\u4e2a\u4f5c\u4e1a\u63a8\u9001\u7684\u6570\u636e\u91cf\uff0c\u7136\u540e\u51b3\u5b9a\u8c01\u5e94\u8be5\u88ab\u62e5\u585e\u63a7\u5236\u3002<\/p>\n<p>\u7b2c\u4e09\uff0cCredit Based\u3002\u7528\u4e8e Flink Read \u573a\u666f\uff0c\u5728 Shuffle Read \u65f6\uff0c\u9700\u8981\u4fdd\u8bc1\u6240 Read \u7684\u6570\u636e\u662f\u88ab Flink \u7ba1\u7406\u7684\u3002\u7b80\u5355\u8bb2\u5c31\u662f Worker \u628a\u6570\u636e\u63a8\u7ed9 Task Manager \u4e4b\u524d\uff0c\u9700\u8981\u62ff\u5230 Credit\u3002<\/p>\n<h4>3.4 \u8d1f\u8f7d\u5747\u8861<\/h4>\n<p>\u8fd9\u91cc\u4e3b\u8981\u662f\u6307\u78c1\u76d8\u7684\u8d1f\u8f7d\u5747\u8861\uff0c\u9488\u5bf9\u7684\u662f\u5f02\u6784\u96c6\u7fa4\u573a\u666f\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044155197\" alt=\"11\" title=\"11\" loading=\"lazy\">  <\/p>\n<p>\u5f02\u6784\u60c5\u51b5\u4e0b\u673a\u5668\u7684\u5904\u7406\u80fd\u529b\u3001\u78c1\u76d8\u5bb9\u91cf\u548c\u78c1\u76d8\u5065\u5eb7\u90fd\u662f\u4e0d\u4e00\u6837\u7684\u3002\u6bcf\u4e2a Worker \u90fd\u4f1a\u81ea\u68c0\u672c\u5730\u78c1\u76d8\u7684\u5065\u5eb7\u72b6\u6001\u548c\u6027\u80fd\uff0c\u540c\u65f6\u628a\u7ed3\u679c\u6c47\u62a5\u7ed9 Master\uff0c\u8fd9\u6837 Master \u6709\u4e00\u4e2a\u5168\u5c40\u7684\u78c1\u76d8\u89c6\u91ce\uff0c\u53ef\u4ee5\u6839\u636e\u4e00\u5b9a\u7684\u7b56\u7565\u5728\u8fd9\u4e9b\u78c1\u76d8\u4e4b\u95f4\u505a\u8d1f\u8f7d\u5206\u914d\uff0c\u5b9e\u73b0\u66f4\u597d\u7684\u8d1f\u8f7d\u5747\u8861\u3002<\/p>\n<h3>\u56db\u3001Apache Celeborn\u2014\u2014\u5f39<\/h3>\n<p>\u4f7f\u7528 Apache Celeborn \u7684\u5178\u578b\u573a\u666f\u6709\u4e09\u79cd\uff1a\u5b8c\u5168\u6df7\u90e8\u3001Celeborn \u72ec\u7acb\u90e8\u7f72\u548c\u5b58\u7b97\u5206\u79bb\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044155198\" alt=\"12\" title=\"12\" loading=\"lazy\">  <\/p>\n<p>\u5b8c\u5168\u6df7\u90e8\u7684\u6536\u76ca\u4e3b\u8981\u662f\u63d0\u5347\u6027\u80fd\u548c\u7a33\u5b9a\u6027\uff0c\u4f46\u662f\u5b83\u7684\u8d44\u6e90\u56e0\u4e3a\u56fa\u5b9a\uff0c\u6240\u4ee5\u5f88\u96be\u505a\u5230\u5f39\u6027\u3002<\/p>\n<p>Celeborn \u72ec\u7acb\u90e8\u7f72\uff0cCeleborn \u7684 I\/O \u548c HDFS \u7684 I\/O \u53ef\u4ee5\u505a\u9694\u79bb\uff0c\u514d\u53bb\u4e92\u76f8\u7684\u5f71\u54cd\uff0c\u4e14 Celeborn \u96c6\u7fa4\u5177\u5907\u4e00\u5b9a\u5f39\u6027\u3002<\/p>\n<p>\u5b58\u7b97\u5206\u79bb\uff0c\u8ba1\u7b97\u548c\u5b58\u50a8\u662f\u5206\u5f00\u7684\uff0cCeleborn \u96c6\u7fa4\u72ec\u7acb\u90e8\u7f72\u3002\u8ba1\u7b97\u96c6\u7fa4\u56e0\u4e3a Shuffle \u53d8\u4e3a\u65e0\u72b6\u6001\u53ef\u4ee5\u505a\u5f88\u597d\u7684\u5f39\u6027\uff0cCeleborn \u96c6\u7fa4\u672c\u8eab\u4e5f\u5177\u6709\u5f39\u6027\u80fd\u529b\uff0c\u5b58\u50a8\u8fd9\u8fb9\u4e5f\u53ef\u4ee5\u6309\u7167\u5b58\u50a8\u91cf\u6536\u8d39\u3002\u6240\u4ee5\u8fd9\u662f\u4e00\u4e2a\u6210\u672c\u3001\u6027\u4ef7\u6bd4\u6bd4\u8f83\u597d\u7684\u65b9\u6848\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044155199\" alt=\"13\" title=\"13\" loading=\"lazy\"><\/p>\n<h3>\u4e94\u3001Evalution<\/h3>\n<h4>5.1 \u7a33\u5b9a\u6027<\/h4>\n<ul>\n<li>Spark \u5927\u4f5c\u4e1a<\/li>\n<\/ul>\n<p>\u573a\u666f\uff1a\u6df7\u90e8\u65b9\u5f0f\uff0c\u7528 Spark on Yarn + Celeborn\u3002\u90e8\u7f72\u4e86 1000 \u53f0 Celeborn Worker\uff0c\u4f46 Worker \u8d44\u6e90\u4f7f\u7528\u91cf\u662f\u6bd4\u8f83\u5c11\u7684\uff0c\u5185\u5b58\u5927\u6982\u662f 30g \u5de6\u53f3\uff0c\u6bcf\u5929\u7684 Shuffle \u6570\u636e\u91cf\u662f\u82e5\u5e72\u4e2a PB\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044155200\" alt=\"14\" title=\"14\" loading=\"lazy\"> <\/p>\n<p>\u4ece\u4e0a\u56fe\u53ef\u89c1\uff0c\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u5178\u578b\u7684\u5927\u4f5c\u4e1a\uff0c\u6709\u51e0\u4e07\u4e2a\u5e76\u53d1\uff0c\u5728\u8fd0\u884c\u7684\u8fc7\u7a0b\u4e2d\u4ecd\u7136\u975e\u5e38\u7a33\u5b9a\u3002<\/p>\n<ul>\n<li>Flink \u5927\u4f5c\u4e1a<\/li>\n<\/ul>\n<p>\u4e0b\u56fe\u662f\u963f\u91cc\u5185\u90e8 Flink Batch \u4f5c\u4e1a\u7684\u4e00\u4e2a\u622a\u56fe\u3002\u90e8\u7f72\u65b9\u5f0f\u662f Flink on K8s + Celeborn On K8s\uff0c\u90e8\u7f72\u4e86 500 \u53f0 Worker\uff0c\u6bcf\u4e2a Worker \u662f 20G \u7684\u5185\u5b58\u3002<\/p>\n<p>\u8fd9\u4e5f\u662f\u4e00\u4e2a\u975e\u5e38\u5927\u7684\u4f5c\u4e1a\uff0c\u53ef\u4ee5\u770b\u5230\u5b83\u5355\u4e2a Shuffle \u6709 680TB\uff0c\u4f46\u8fd0\u884c\u8fc7\u7a0b\u4e5f\u662f\u5f88\u7a33\u5b9a\u7684\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044155201\" alt=\"15\" title=\"15\" loading=\"lazy\"><\/p>\n<h4>5.2 \u6eda\u52a8\u91cd\u542f<\/h4>\n<p>\u4e0b\u56fe\u662f\u5df2\u7ecf\u6d4b\u8bd5\u4f5c\u4e1a\u8fd0\u884c\u4e2d Worker \u7684\u6eda\u52a8\u91cd\u542f\u3002\u5c06\u4e00\u4e2a Worker \u505c\u6389\uff0c\u7b49\u8fdb\u7a0b\u9000\u51fa\uff0c\u518d\u91cd\u65b0\u542f\u52a8\u3002\u4e0b\u56fe\u7684\u65f6\u95f4\u70b9\u53ef\u89c1\uff0c\u4ece 19 \u5206 44 \u79d2\u5f00\u59cb\u505c\u6b62\uff0c19 \u5206 53 \u79d2\u9000\u51fa\u4f5c\u4e1a\uff0c20 \u5206 1 \u79d2\u7684\u65f6\u5019\u91cd\u65b0\u542f\u52a8\u5e76\u5b8c\u6210\u6ce8\u518c\uff0c\u5e76\u7ee7\u7eed\u5f00\u59cb\u63d0\u4f9b\u670d\u52a1\u3002\u6574\u4e2a\u8fc7\u7a0b\u53ea\u9700 27 \u79d2\uff0c\u4f5c\u4e1a\u5b8c\u5168\u6ca1\u6709\u53d7\u5230\u5f71\u54cd\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044155202\" alt=\"16\" title=\"16\" loading=\"lazy\"> <\/p>\n<p>\u53e6\u5916\u4e00\u4e2a\u7528\u6237\uff0c\u5728\u751f\u4ea7\u4e0a\u505a\u4e86\u6eda\u52a8\u91cd\u542f\u5347\u7ea7\uff0c\u6eda\u52a8\u91cd\u542f 1000 \u53f0 Worker\uff0c\u5206\u4e86 10 \u6279\u6267\u884c\uff0c\u89c2\u5bdf\u4e0b\u6765\u662f\u6bcf 2 \u5206\u949f\u5de6\u53f3\u5c31\u53ef\u4ee5\u5b8c\u6210\u4e00\u6279\u6b21\u7684\u91cd\u542f\uff0c\u5b8c\u5168\u4e0d\u5f71\u54cd\u4f5c\u4e1a\u3002<\/p>\n<h4>5.3 \u6027\u80fd<\/h4>\n<p>\u5982\u4e0b\u56fe\u6240\u793a\uff0cCeleborn0.2 \u548c 0.3 \u76f8\u6bd4 ESS \u90fd\u6709\u6bd4\u8f83\u660e\u663e\u7684\u6027\u80fd\u63d0\u5347\uff0c\u540c\u65f6 0.3 \u7248\u672c\u6bd4 0.2 \u7248\u672c\u6709\u8fdb\u4e00\u6b65\u7684\u6027\u80fd\u63d0\u5347\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044155203\" alt=\"17\" title=\"17\" loading=\"lazy\"> <\/p>\n<p>\u4e0b\u56fe\u6d4b\u8bd5\u7684\u662f TPCDS\uff0c\u5bf9\u6bd4\u7684\u662f ESS\uff0cCeleborn \u5355\u526f\u672c\u548c\u4e24\u526f\u672c\u3002\u53ef\u4ee5\u770b\u5230\u5355\u526f\u672c\u6027\u80fd\u6709 20%\u591a\u7684\u63d0\u5347\uff0c\u4e24\u526f\u672c\u6709 15%\u7684\u63d0\u5347\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044155204\" alt=\"18\" title=\"18\" loading=\"lazy\"><\/p>\n<h4>5.4 \u5f39\u6027<\/h4>\n<p>\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u7528\u5b58\u7b97\u5206\u79bb\u7684\u67b6\u6784\uff0c\u90e8\u7f72 100 \u53f0 Worker\uff0c\u8ba1\u7b97\u662f Spark On K8s\uff0c\u6bcf\u5929\u4f38\u7f29\u6570\u4e07\u4e2a Pods\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000044155205\" alt=\"19\" title=\"19\" loading=\"lazy\"><\/p>\n<h3>\u52a0\u5165\u6211\u4eec<\/h3>\n<ul>\n<li>GitHub  <a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=DEKtJl1kdfJCzCUDOZ2Dsg%3D%3D.AKzgicXwTk3oh6ptVOXlG%2FAV5glE6eiRXpJpxL9spN8KYiL3gBJyNi5kdWcb8bFg\" rel=\"noopener noreferrer\">https:\/\/github.com\/apache\/incubator-celeborn<\/a><\/li>\n<li>\u9489\u9489\u7fa4: 41594456<\/li>\n<li>\u5fae\u4fe1\u52a0\u597d\u53cb\u8fdb\u7fa4\uff1abrick_carrier<\/li>\n<li>\u5fae\u4fe1\u516c\u4f17\u53f7\uff1aApache Celeborn\u5b75\u5316<\/li>\n<\/ul>\n<h3>Q&#038;A<\/h3>\n<p>Q\uff1a\u8bf7\u95ee\u662f\u4e0d\u662f\u628a\u4ee5\u4e0a\u8bf4\u7684\u90a3\u4e9b\u4f18\u5316\u624b\u6bb5\uff0c\u653e\u5728\u672c\u5730\u4e0a\uff0c\u4f1a\u4e0d\u4f1a\u53d6\u5f97\u66f4\u597d\u7684\u6548\u679c\uff1f<\/p>\n<p>A\uff1aSpark \u6709\u4e00\u4e2a LinkedIn \u4e3b\u5bfc\u7684 Magnet \u7684\u4f18\u5316\uff0c\u4f46\u56e0\u4e3a Shuffle \u4f9d\u7136\u4f7f\u7528 Node Manage \u7ba1\u7406\uff0c\u4f1a\u5b58\u5728\u4e00\u4e9b\u95ee\u9898\u3002<\/p>\n<p>\u7b2c\u4e00\u4e2a\u95ee\u9898\u662f\uff0c\u89e3\u51b3\u4e0d\u4e86\u5b58\u7b97\u5206\u79bb\u7684\u95ee\u9898\uff1b\u7b2c\u4e8c\u4ece\u6027\u80fd\u89d2\u5ea6\u6765\u8bb2\uff0cMagnet \u4fdd\u7559\u4e24\u79cd\u65b9\u5f0f\uff0c\u5728\u4fdd\u7559\u4e86\u5199\u672c\u5730 Shuffle \u7684\u540c\u65f6\u505a Push Shuffle\uff0c\u4e5f\u5c31\u662f\u5f02\u6b65\u8bfb\u53d6\u672c\u5730 Shuffle \u6587\u4ef6\u4e4b\u540e\uff0c\u518d\u53bb Push \u8fdc\u7aef\u7684 ESS\uff0c\u800c\u4e0d\u662f\u4e00\u8fb9\u4ea7\u751f\u6570\u636e\u4e00\u8fb9\u53bb Push\u3002<\/p>\n<p>\u8fd9\u6837\u5c31\u5e26\u6765\u4e00\u4e2a\u95ee\u9898\uff0c\u5f53 Shuffle \u7ed3\u675f\u7684\u65f6\u5019\uff0c\u5e76\u4e0d\u80fd\u4fdd\u8bc1\u6240\u6709\u7684\u6570\u636e\u90fd Push \u5230\u8fdc\u7aef\uff0c\u90a3\u4e48\u4e3a\u4e86\u907f\u514d\u8fc7\u957f\u7684\u7b49\u5f85\u65f6\u95f4\uff0c\u5b83\u4f1a\u5f3a\u884c\u4e2d\u65ad\u8fd9\u4e2a\u8fc7\u7a0b\u3002\u4e5f\u5c31\u662f\u6700\u7ec8\u6709\u4e00\u90e8\u5206\u6570\u636e\u88ab\u63a8\u5230\u8fdc\u7aef\uff0c\u6709\u4e00\u90e8\u5206\u5e76\u6ca1\u6709\u3002<\/p>\n<p>\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u4ece\u63a7\u5236\u903b\u8f91\u6765\u8bb2\uff0c\u8bfb\u6570\u636e\u7684\u65f6\u5019\u8981\u5148\u5c3d\u91cf\u53bb\u8bfb push \u7684 Shuffle\uff0c\u5982\u679c\u6ca1\u6709\u7684\u8bdd\u518d\u8bfb\u672c\u5730\u7684 Shuffle\uff0c\u8fd9\u662f\u4e00\u4e2a\u6df7\u5408\u7684\u8fc7\u7a0b\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u662f\u6709 Overhead \u7684\u3002<\/p>\n<p>Q\uff1a\u8bf7\u95ee\u5355\u72ec\u90e8\u7f72 Shuffle \u4f1a\u4e0d\u4f1a\u5e26\u6765\u989d\u5916\u7684\u7f51\u7edc\u5f00\u9500\uff1f<\/p>\n<p>A\uff1a\u8fd9\u5176\u5b9e\u662f\u67b6\u6784\u9009\u62e9\u7684\u95ee\u9898\u3002\u5982\u679c\u4e0d\u9700\u8981\u5b58\u7b97\u5206\u79bb\uff0c\u4e0d\u9700\u8981\u5bf9\u8ba1\u7b97\u96c6\u7fa4\u505a\u5f39\u6027\u6269\u5bb9\uff0c\u53ea\u662f\u4e3a\u4e86\u89e3\u51b3\u6027\u80fd\u548c\u7a33\u5b9a\u6027\u7684\u95ee\u9898\uff0c\u90a3\u4e48\u53ef\u4ee5\u9009\u62e9\u6df7\u5408\u90e8\u7f72\u3002\u5982\u679c\u9700\u8981\u505a\u8ba1\u7b97\u7684\u5f39\u6027\uff0c\u90a3\u5c31\u66f4\u503e\u5411\u4e8e\u5355\u72ec\u90e8\u7f72\u3002<\/p>\n<p>Q\uff1a\u8bf7\u95ee Spark \u5728\u6267\u884c\u8fc7\u7a0b\u4e2d\uff0cStage \u53ef\u80fd\u4f1a\u5931\u8d25\uff0c\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u600e\u4e48\u5904\u7406\u5462\uff1f<\/p>\n<p>A\uff1a\u8fd9\u5176\u5b9e\u662f\u6570\u636e\u6b63\u786e\u6027\u7684\u95ee\u9898\u3002Spark Task \u91cd\u7b97\u4f1a\u5bfc\u81f4\u91cd\u590d\u6570\u636e\u7684\u63a8\u9001\uff0cCeleborn Client \u4e5f\u53ef\u80fd\u91cd\u590d\u63a8\u9001\u6570\u636e\u3002<\/p>\n<p>\u7b2c\u4e00\uff0cSpark \u4f1a\u8bb0\u5f55\u54ea\u4e2a attempt \u6210\u529f\u4e86\uff0cCeleborn \u8981\u62ff\u5230\u8fd9\u4e2a\u4fe1\u606f\u3002<\/p>\n<p>\u7b2c\u4e8c\uff0c\u63a8\u9001\u7684\u6bcf\u4e2a\u6570\u636e\u90fd\u4f1a\u6709\u4e00\u4e2a Map ID\uff0cattempt ID \u548c Batch ID\uff0c\u8fd9\u4e2a Batch ID \u5c31\u662f\u5728 attempt\u91cc\u5168\u5c40\u552f\u4e00\u7684 ID\u3002\u5728 Shuffle read \u7684\u65f6\u5019\uff0c\u53ea\u8bfb\u6210\u529f\u7684\u90a3\u4e2a attempt \u6570\u636e\uff1b\u7b2c\u4e8c\u9488\u5bf9\u8fd9\u4e2a attempt \u6570\u636e\uff0c\u4f1a\u8bb0\u5f55\u4e0b\u6765\u4e4b\u524d\u8bfb\u5230\u7684\u6240\u6709 Batch ID\uff0c\u5982\u679c\u53d1\u73b0\u4e86\u4e4b\u524d\u8bfb\u8fc7\u7684\uff0c\u5c31\u76f4\u63a5\u5ffd\u7565\u4e86\u3002<\/p>\n<p>\u8fd9\u6837\u53ef\u4ee5\u4fdd\u8bc1\u65e2\u4e0d\u4f1a\u4e22\u5931\u6570\u636e\uff0c\u4e5f\u4e0d\u4f1a\u91cd\u590d\u6570\u636e\u3002<\/p>\n<p>Q\uff1a\u8bf7\u95ee\u5982\u679c Spark \u6216 Flink \u548c Celeborn \u4e00\u8d77\u53bb\u7528\u7684\u8bdd\uff0c\u5982\u679c\u63d0\u4ea4 Spark \u4efb\u52a1\uff0c\u4e2d\u95f4\u7684 Shuffle \u8fc7\u7a0b\u662f Celeborn \u81ea\u5df1\u63a5\u7ba1\u90a3\u4e2a\u72b6\u6001\uff0c\u8fd8\u662f\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u7528 Celeborn \u5b9e\u73b0\u8fd9\u4e9b\u529f\u80fd\uff1f<\/p>\n<p>A\uff1a\u8fd9\u662f\u7528\u6cd5\u7684\u95ee\u9898\u3002\u5982\u679c\u60f3\u7528 Celeborn\uff0c\u9996\u5148\u9700\u8981\u90e8\u7f72 Celeborn \u96c6\u7fa4\uff1b\u7b2c\u4e8c\u6b65\uff0c\u628a Celeborn \u5ba2\u6237\u7aef\u7684 Jar \u62f7\u8d1d\u5230 Spark \u6216 Flink \u7684 Jars \u76ee\u5f55\uff1b\u7b2c\u4e09\u6b65\uff0c\u542f\u52a8\u4f5c\u4e1a\u7684\u65f6\u5019\u591a\u52a0\u4e00\u4e9b\u53c2\u6570\u3002\u505a\u597d\u8fd9\u51e0\u6b65\uff0c\u5c31\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528 Celeborn \u4e86\u3002<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=3v7%2FCElC0%2BqhoLAETU8n9Q%3D%3D.sL23ZAUEY3kj9kU354g9643YJr7Fo2xZNQR6UP20issXXq2wrpHBiK4GL3kJ0Tp0LrNBgcJ%2BWgWX7DzfOwUCzWlDmtoJ0kZ%2Fp57rlH7gEi2qxCWe5U779nZnT3ZaVr%2BQhxGh%2Fk%2BAekbZ00Dq4cDoaQ%3D%3D\" rel=\"noopener noreferrer\">\u70b9\u51fb\u67e5\u770b\u539f\u6587\u89c6\u9891 &#038; \u6f14\u8bb2PPT<\/a><\/p>\n<hr>\n<h4>\u66f4\u591a\u5185\u5bb9<\/h4>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000043814703\" 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 \/>0 \u5143\u8bd5\u7528 <a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=53CZZ6yVRk47%2FcHUm6O4rw%3D%3D.tQUQcBTLoORm2yrrtp7Ssbkong04BfKMGjxwVhBg3XctnYBrPk1Pxke7S2cCyCm1\" rel=\"noopener noreferrer\">\u5b9e\u65f6\u8ba1\u7b97 Flink \u7248<\/a>\uff085000CU*\u5c0f\u65f6\uff0c3 \u4e2a\u6708\u5185\uff09<br \/>\u4e86\u89e3\u6d3b\u52a8\u8be6\u60c5\uff1a<a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=OLgZEEY90WRXIqbA5SkHgA%3D%3D.kcjk3fm2fuMrb2jgQ%2B1k8wGEwbSxNBlnqalHPaOnguPnULb3lPnvEzNI3dHgwerZ\" rel=\"noopener noreferrer\">https:\/\/click.aliyun.com\/m\/1000372333\/<\/a><\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"407\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc9qWw\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000044155185\">https:\/\/segmentfault.com\/a\/1190000044155185<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6458\u8981\uff1a\u672c\u6587\u6574\u7406\u81ea\u963f\u91cc\u4e91\/\u6570\u636e\u6e56 Spark \u5f15\u64ce\u8d1f\u8d23\u4eba\u5468\u514b\u52c7\uff08\u4e00\u9524\uff09\u5728 Streaming Lakehouse [&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-10008178","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\/10008178","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=10008178"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10008178\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10008178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10008178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10008178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}