{"id":101893,"date":"2026-09-07T19:17:22","date_gmt":"2026-09-07T11:17:22","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/101893.html"},"modified":"2026-09-07T19:17:22","modified_gmt":"2026-09-07T11:17:22","slug":"tez%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/101893.html","title":{"rendered":"Tez\u8be6\u89e3"},"content":{"rendered":"<h2>Tez<\/h2>\n<p>\u6700\u8fd1\u9762\u8bd5pdd\u53d1\u73b0\u4ed6\u4eec\u7adf\u7136\u5728\u7528 Hive on Tez &#xff0c;\u800c\u4e14\u5f88\u591a\u4eba\u5bf9 Tez \u7684\u7406\u89e3&#xff0c;\u5f80\u5f80\u505c\u7559\u5728\u201c\u5b83\u80fd\u63d0\u901f\u201d\u8fd9\u4e00\u5c42\u3002\u6240\u4ee5\u5199\u4e0b\u8fd9\u7bc7\u3002<\/p>\n<p>\u8fd9\u7bc7\u6587\u7ae0\u5c31\u56f4\u7ed5\u4e24\u4e2a\u95ee\u9898\u5c55\u5f00&#xff1a;<\/p>\n<li>Tez \u5230\u5e95\u662f\u600e\u4e48\u8dd1\u8d77\u6765\u7684&#xff1f;<\/li>\n<li>Tez \u7684\u6027\u80fd\u95ee\u9898\u5e94\u8be5\u600e\u4e48\u770b\u3001\u600e\u4e48\u8c03&#xff1f;<\/li>\n<hr \/>\n<h3>1. Tez \u662f\u4ec0\u4e48<\/h3>\n<p>Tez \u672c\u8d28\u4e0a\u662f\u4e00\u4e2a DAG \u6267\u884c\u5f15\u64ce\u3002<\/p>\n<p>\u5728 Hive \u573a\u666f\u91cc&#xff0c;SQL \u4e0d\u4f1a\u76f4\u63a5\u88ab\u201c\u6574\u6761\u6267\u884c\u201d&#xff0c;\u800c\u662f\u5148\u7ecf\u8fc7\u7f16\u8bd1&#xff0c;\u8f6c\u6362\u4e3a\u7269\u7406\u6267\u884c\u8ba1\u5212&#xff0c;\u518d\u6839\u636e\u6570\u636e\u4f9d\u8d56\u548c\u6267\u884c\u8fb9\u754c\u62c6\u6210\u591a\u4e2a Vertex\u3002\u6bcf\u4e2a Vertex \u53ef\u4ee5\u7406\u89e3\u4e3a\u4e00\u4e2a\u6267\u884c\u9636\u6bb5&#xff0c;\u9636\u6bb5\u4e4b\u95f4\u901a\u8fc7\u6570\u636e\u4f9d\u8d56\u8fde\u63a5\u8d77\u6765&#xff0c;\u5f62\u6210\u4e00\u5f20\u6709\u5411\u65e0\u73af\u56fe&#xff08;DAG&#xff09;\u3002<\/p>\n<p>\u4e00\u822c\u6765\u8bf4&#xff0c;\u5f53 SQL \u4e2d\u51fa\u73b0\u4ee5\u4e0b\u64cd\u4f5c\u65f6&#xff0c;\u5f80\u5f80\u4f1a\u5f15\u5165\u65b0\u7684\u6267\u884c\u9636\u6bb5&#xff1a;<\/p>\n<ul>\n<li>Join<\/li>\n<li>Group By<\/li>\n<li>Distinct<\/li>\n<li>Order By<\/li>\n<li>\u9700\u8981 Shuffle \u7684\u805a\u5408<\/li>\n<\/ul>\n<p>\u4f46\u8981\u6ce8\u610f&#xff1a;\u662f\u5426\u771f\u7684\u62c6\u51fa\u65b0\u7684 Vertex&#xff0c;\u6700\u7ec8\u8fd8\u8981\u770b\u4f18\u5316\u540e\u7684\u6267\u884c\u8ba1\u5212\u3002<\/p>\n<p>\u6bd4\u5982\u67d0\u4e9b Join \u53ef\u4ee5\u88ab\u4f18\u5316\u6210 MapJoin&#xff0c;\u8fd9\u6837\u5c31\u53ef\u80fd\u51cf\u5c11\u751a\u81f3\u907f\u514d Shuffle \u9636\u6bb5\u3002<\/p>\n<p>\u4e00\u53e5\u8bdd\u6982\u62ec&#xff1a;<\/p>\n<p>Tez \u7684\u6838\u5fc3&#xff0c;\u4e0d\u662f\u628a SQL \u4e00\u53e3\u6c14\u8dd1\u5b8c&#xff0c;\u800c\u662f\u628a SQL \u62c6\u6210\u591a\u4e2a\u9636\u6bb5&#xff0c;\u8ba9\u6bcf\u4e2a\u9636\u6bb5\u4ee5\u5408\u9002\u7684\u5e76\u884c\u5ea6\u63a5\u529b\u6267\u884c\u3002<\/p>\n<hr \/>\n<h3>2. Tez \u7684\u6574\u4f53\u6267\u884c\u8fc7\u7a0b<\/h3>\n<p>\u4e00\u6761 Hive SQL \u8dd1\u5230 Tez \u4e0a&#xff0c;\u4e0d\u662f\u7b80\u5355\u5730\u201c\u4ece\u4e0a\u5230\u4e0b\u6267\u884c\u201d&#xff0c;\u800c\u662f\u4f1a\u7ecf\u5386\u51e0\u4e2a\u975e\u5e38\u5173\u952e\u7684\u62c6\u5206\u52a8\u4f5c&#xff1a;<\/p>\n<li>\u5148\u7531 Hive \u7f16\u8bd1\u6210\u6267\u884c\u8ba1\u5212&#xff1b;<\/li>\n<li>\u518d\u6839\u636e\u6267\u884c\u8fb9\u754c\u62c6\u6210\u591a\u4e2a Vertex&#xff1b;<\/li>\n<li>\u5728\u626b\u63cf\u9636\u6bb5&#xff0c;\u8f93\u5165\u6587\u4ef6\u4f1a\u5148\u88ab\u5207\u6210\u591a\u4e2a Input Split&#xff1b;<\/li>\n<li>Tez \u518d\u628a\u591a\u4e2a Split \u901a\u8fc7 Grouping \u5408\u5e76\u6210 Grouped Split&#xff1b;<\/li>\n<li>\u4e00\u4e2a Grouped Split \u901a\u5e38\u5bf9\u5e94\u4e00\u4e2a Map Task&#xff1b;<\/li>\n<li>\u9047\u5230 Join\u3001Group By \u8fd9\u7c7b\u9700\u8981 Shuffle \u7684\u64cd\u4f5c\u65f6&#xff0c;\u4e0a\u4e0b\u6e38 Vertex \u4e4b\u95f4\u518d\u901a\u8fc7\u6570\u636e\u91cd\u5206\u533a\u8854\u63a5\u8d77\u6765\u3002<\/li>\n<p>\u6240\u4ee5&#xff0c;\u8fd9\u6761\u6267\u884c\u94fe\u8def\u53ef\u4ee5\u5199\u6210\u4e0b\u9762\u8fd9\u6837&#xff1a;<\/p>\n<p>Hive SQL<br \/>\n  \u2193<br \/>\nHive \u7f16\u8bd1\u6210\u7269\u7406\u6267\u884c\u8ba1\u5212<br \/>\n  \u2193<br \/>\n\u8bc6\u522b\u626b\u63cf\u9636\u6bb5\u7684\u8f93\u5165\u6587\u4ef6<br \/>\n  \u2193<br \/>\n\u6587\u4ef6\u5207\u5206\u6210\u591a\u4e2a Input Split<br \/>\n  \u2193<br \/>\n\u591a\u4e2a Split \u7ecf\u8fc7 Grouping \u5408\u5e76\u6210 Grouped Split<br \/>\n  \u2193<br \/>\n\u4e00\u4e2a Grouped Split \u901a\u5e38\u5bf9\u5e94\u4e00\u4e2a Map Task<br \/>\n  \u2193<br \/>\nMap Task \u8dd1\u5728 YARN Container \u4e2d<br \/>\n  \u2193<br \/>\n\u9047\u5230 Join \/ Group By \/ Distinct \u7b49\u64cd\u4f5c\u65f6\u53d1\u751f Shuffle<br \/>\n  \u2193<br \/>\n\u4e0a\u6e38 Vertex \u628a\u6570\u636e\u6309 Key \u91cd\u65b0\u5206\u533a<br \/>\n  \u2193<br \/>\n\u4e0b\u6e38 Vertex \u63a5\u6536\u6570\u636e\u7ee7\u7eed\u8ba1\u7b97<\/p>\n<p>\u8fd9\u6837\u7406\u89e3\u4f1a\u66f4\u987a&#xff1a;\u5148\u6709\u6587\u4ef6\u5207\u5206&#xff0c;\u518d\u6709 Grouping&#xff0c;\u518d\u6709 Task&#xff0c;\u540e\u9762\u624d\u662f Vertex \u4e4b\u95f4\u7684 Shuffle \u8854\u63a5\u3002<\/p>\n<p>\u66f4\u76f4\u767d\u4e00\u70b9\u8bf4&#xff0c;Tez \u7684\u6267\u884c\u4e0d\u662f\u201cVertex \u5ffd\u7136\u5192\u51fa\u6765\u201d&#xff0c;\u800c\u662f\u5148\u4ece\u8f93\u5165\u6570\u636e\u5f00\u59cb&#xff0c;\u628a\u6587\u4ef6\u5207\u6210 Split&#xff0c;\u518d\u901a\u8fc7 Grouping \u51b3\u5b9a\u626b\u63cf\u9636\u6bb5\u7684 Task \u6570\u91cf&#xff1b;\u7b49\u8fdb\u5165\u9700\u8981\u91cd\u5206\u5e03\u6570\u636e\u7684\u9636\u6bb5\u540e&#xff0c;\u624d\u4f1a\u8fdb\u4e00\u6b65\u4f53\u73b0\u51fa Vertex \u4e4b\u95f4\u7684\u4f9d\u8d56\u5173\u7cfb\u3002<\/p>\n<p>\u66f4\u76f4\u767d\u4e00\u70b9\u5c31\u662f&#xff1a;<\/p>\n<p>[SQL]<br \/>\n  \u2193<br \/>\n[\u6267\u884c\u8ba1\u5212]<br \/>\n  \u2193<br \/>\n[Tez DAG]<br \/>\n  \u2193<br \/>\n[Vertex 1] \u2192 [Vertex 2] \u2192 [Vertex 3]<br \/>\n   \u2193            \u2193            \u2193<br \/>\n Task\u4eec        Task\u4eec        Task\u4eec<\/p>\n<p>\u8fd9\u91cc\u5148\u8bb0\u4f4f\u4e09\u4e2a\u6982\u5ff5&#xff1a;<\/p>\n<ul>\n<li>DAG&#xff1a;\u4efb\u52a1\u4e4b\u95f4\u7684\u4f9d\u8d56\u5173\u7cfb\u56fe&#xff1b;<\/li>\n<li>Vertex&#xff1a;\u4e00\u4e2a\u6267\u884c\u9636\u6bb5&#xff1b;<\/li>\n<li>Task&#xff1a;\u8fd9\u4e2a\u9636\u6bb5\u91cc\u771f\u6b63\u5e72\u6d3b\u7684\u6267\u884c\u5355\u5143\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>3. \u626b\u63cf\u9636\u6bb5&#xff1a;Input Split \u600e\u4e48\u53d8\u6210 Task<\/h3>\n<p>Tez \u7684\u5e76\u884c\u5ea6&#xff0c;\u9996\u5148\u4ece\u626b\u63cf\u9636\u6bb5\u5f00\u59cb\u770b\u3002<\/p>\n<h4>3.1 Input Split<\/h4>\n<p>Hive \u8bfb\u8868\u65f6&#xff0c;\u4e0d\u4f1a\u76f4\u63a5\u628a\u6574\u5f20\u8868\u5f53\u6210\u4e00\u4e2a\u4efb\u52a1\u53bb\u8bfb&#xff0c;\u800c\u662f\u5148\u6839\u636e InputFormat \u5c06\u8f93\u5165\u6587\u4ef6\u5207\u6210\u591a\u4e2a Input Split\u3002<\/p>\n<p>Split \u7684\u5927\u5c0f\u901a\u5e38\u4f1a\u53d7\u5230\u8fd9\u4e9b\u56e0\u7d20\u5f71\u54cd&#xff1a;<\/p>\n<ul>\n<li>\u6587\u4ef6\u683c\u5f0f&#xff1b;<\/li>\n<li>\u6587\u4ef6\u5927\u5c0f&#xff1b;<\/li>\n<li>HDFS Block&#xff1b;<\/li>\n<li>\u538b\u7f29\u65b9\u5f0f\u3002<\/li>\n<\/ul>\n<p>\u4f60\u53ef\u4ee5\u628a\u5b83\u7406\u89e3\u4e3a&#xff1a;<\/p>\n<p>\u4e00\u5927\u6279\u539f\u59cb\u6570\u636e&#xff0c;\u5148\u88ab\u5207\u6210\u5f88\u591a\u5c0f\u5757&#xff0c;\u540e\u9762\u518d\u5206\u914d\u7ed9\u4e0d\u540c\u7684 Task \u5904\u7406\u3002<\/p>\n<h4>3.2 \u4e3a\u4ec0\u4e48\u8fd8\u8981 Grouping<\/h4>\n<p>\u5982\u679c\u771f\u7684\u662f\u201c\u4e00\u4e2a Split \u5bf9\u5e94\u4e00\u4e2a Task\u201d&#xff0c;\u90a3\u4e48 Task \u6570\u91cf\u5f88\u5bb9\u6613\u8fc7\u591a&#xff1a;<\/p>\n<ul>\n<li>\u8c03\u5ea6\u5f00\u9500\u5927&#xff1b;<\/li>\n<li>Container \u542f\u52a8\u5f00\u9500\u5927&#xff1b;<\/li>\n<li>\u5355\u4e2a Task \u592a\u8f7b&#xff0c;\u6574\u4f53\u6548\u7387\u53cd\u800c\u4e0d\u9ad8\u3002<\/li>\n<\/ul>\n<p>Tez \u5728\u626b\u63cf\u9636\u6bb5\u5e76\u4e0d\u662f\u7b80\u5355\u5730\u201c\u4e00\u4e2a Split \u5bf9\u5e94\u4e00\u4e2a Map Task\u201d&#xff0c;\u800c\u662f\u4f1a\u5148\u505a Grouping\u3002<\/p>\n<p>\u5b83\u7684\u8fc7\u7a0b\u53ef\u4ee5\u7406\u89e3\u6210\u4e09\u6b65&#xff1a;<\/p>\n<li>\u5148\u4f30\u7b97\u76ee\u6807\u5e76\u884c\u5ea6&#xff1a;Tez \u5148\u770b\u8fd9\u4e2a\u9636\u6bb5\u5f53\u524d\u5927\u6982\u80fd\u540c\u65f6\u8dd1\u591a\u5c11\u4e2a Task&#xff0c;\u4e5f\u5c31\u662f\u53ef\u5e76\u53d1\u69fd\u4f4d&#xff1b;\u518d\u7ed3\u5408 tez.grouping.split-waves&#xff0c;\u51b3\u5b9a\u8fd9\u4e00\u9636\u6bb5\u5e0c\u671b\u628a\u8f93\u5165\u5207\u5f97\u201c\u66f4\u7ec6\u201d\u8fd8\u662f\u201c\u66f4\u7c97\u201d\u3002\u8fd9\u91cc\u7684 Task \u6570\u4e0d\u662f\u5148\u56fa\u5b9a\u6b7b\u7684&#xff0c;\u800c\u662f\u6839\u636e\u8d44\u6e90\u4e0a\u9650\u548c\u6ce2\u6570\u76ee\u6807\u4e00\u8d77\u4f30\u51fa\u6765\u7684\u3002<\/li>\n<li>\u518d\u53cd\u63a8\u76ee\u6807 Group Size&#xff1a;\u6709\u4e86\u76ee\u6807 Group \u6570\u4e4b\u540e&#xff0c;Tez \u4f1a\u6839\u636e\u603b\u8f93\u5165\u6570\u636e\u91cf&#xff0c;\u7b97\u51fa\u6bcf\u4e2a Group \u5927\u81f4\u5e94\u8be5\u5305\u542b\u591a\u5c11\u6570\u636e\u3002\u8fd9\u4e2a\u503c\u5c31\u662f\u76ee\u6807 Group Size&#xff0c;\u610f\u601d\u662f\u201c\u6bcf\u4e2a Task \u5e0c\u671b\u5403\u591a\u5c11\u8f93\u5165\u201d\u3002<\/li>\n<li>\u6700\u540e\u628a\u591a\u4e2a Split \u5408\u5e76\u6210 Grouped Split&#xff1a;Tez \u4f1a\u5728 tez.grouping.min-size \u548c tez.grouping.max-size \u7684\u7ea6\u675f\u4e0b&#xff0c;\u7ed3\u5408\u6570\u636e\u672c\u5730\u6027&#xff0c;\u5c3d\u91cf\u628a\u591a\u4e2a Input Split \u5408\u5e76\u6210\u5927\u5c0f\u63a5\u8fd1\u76ee\u6807\u503c\u7684 Grouped Split\u3002<\/li>\n<p>\u4e3e\u4e2a\u4f8b\u5b50&#xff1a;<\/p>\n<p>\u5047\u8bbe\u8fd9\u4e00\u9636\u6bb5\u6709 96GB \u8f93\u5165\u6570\u636e&#xff0c;\u5f53\u524d\u8d44\u6e90\u6761\u4ef6\u4e0b\u5927\u6982\u652f\u6301 8 \u4e2a Task \u540c\u65f6\u8dd1&#xff0c;split-waves &#061; 2\u3002Tez \u5148\u6309\u8fd9\u4e2a\u6ce2\u6570\u628a\u76ee\u6807\u5e76\u884c\u5ea6\u5b9a\u6210 16 \u4e2a Group&#xff0c;\u4e5f\u5c31\u662f 8 \u00d7 2\u3002\u8fd9\u6837\u53cd\u63a8\u51fa\u7684\u76ee\u6807 Group Size \u5c31\u662f 6GB\/Group\u3002<\/p>\n<p>\u5982\u679c\u5355\u4e2a Input Split \u53ea\u6709 1GB \u5de6\u53f3&#xff0c;Tez \u5c31\u4f1a\u628a 6 \u4e2a Split \u5408\u5e76\u6210 1 \u4e2a Grouped Split&#xff0c;\u8ba9\u6bcf\u4e2a Group \u7684\u5927\u5c0f\u5c3d\u91cf\u63a5\u8fd1 6GB&#xff1b;\u5982\u679c Split \u672c\u8eab\u5df2\u7ecf\u6bd4\u8f83\u5927&#xff0c;\u6216\u8005\u53d7\u5230 min-size \/ max-size \u9650\u5236&#xff0c;\u6700\u7ec8\u5206\u7ec4\u7ed3\u679c\u4e5f\u8fd8\u662f\u56f4\u7ed5\u8fd9\u4e2a\u76ee\u6807\u53bb\u8c03\u6574\u3002<\/p>\n<p>\u53ef\u4ee5\u628a\u5b83\u7406\u89e3\u6210&#xff1a;<\/p>\n<p>\u4e0d\u662f\u5148\u770b\u201c\u4e00\u4e2a Split \u80fd\u4e0d\u80fd\u5355\u72ec\u8dd1\u201d&#xff0c;\u800c\u662f\u5148\u770b\u201c\u8fd9\u4e00\u9636\u6bb5\u5e0c\u671b\u5f00\u591a\u5c11\u4e2a Task\u201d&#xff0c;\u518d\u53cd\u63a8\u6bcf\u4e2a Task \u5e94\u8be5\u5403\u591a\u5c11\u6570\u636e\u3002<\/p>\n<p>\u6240\u4ee5&#xff0c;Grouping \u7684\u7ed3\u679c\u4e0d\u662f\u968f\u673a\u62fc\u51fa\u6765\u7684&#xff0c;\u800c\u662f\u56f4\u7ed5\u201c\u76ee\u6807\u5e76\u884c\u5ea6 &#043; \u76ee\u6807\u6570\u636e\u91cf\u201d\u6765\u7ec4\u7ec7\u7684\u3002\u6700\u7ec8&#xff0c;\u4e00\u4e2a Grouped Split \u901a\u5e38\u5bf9\u5e94\u4e00\u4e2a Map Task&#xff0c;\u56e0\u6b64 Grouped Split \u7684\u6570\u91cf\u57fa\u672c\u5c31\u51b3\u5b9a\u4e86 Map Vertex \u7684\u5e76\u884c\u5ea6\u3002<\/p>\n<h4>3.3 Grouping \u7684\u76ee\u6807\u662f\u4ec0\u4e48<\/h4>\n<p>Grouping \u5176\u5b9e\u662f\u5728\u505a\u5e73\u8861&#xff1a;<\/p>\n<ul>\n<li>\u592a\u788e\u4e86\u4e0d\u884c&#xff0c;Task \u592a\u591a&#xff1b;<\/li>\n<li>\u592a\u5927\u4e86\u4e5f\u4e0d\u884c&#xff0c;\u5355\u4e2a Task \u538b\u529b\u592a\u91cd\u3002<\/li>\n<\/ul>\n<p>\u5b83\u60f3\u8fbe\u5230\u7684\u6548\u679c\u662f&#xff1a;<\/p>\n<p>\u6bcf\u4e2a Task \u90fd\u6709\u6d3b\u5e72&#xff0c;\u4f46\u4e0d\u8981\u8fc7\u91cd&#xff0c;\u4e5f\u4e0d\u8981\u592a\u8f7b\u3002<\/p>\n<hr \/>\n<h3>4. Shuffle \u9636\u6bb5&#xff1a;\u4e3a\u4ec0\u4e48 Join \u548c Group By \u7ecf\u5e38\u6162<\/h3>\n<p>Tez \u91cc\u53e6\u4e00\u4e2a\u6700\u5bb9\u6613\u6162\u7684\u5730\u65b9&#xff0c;\u5c31\u662f Shuffle \u9636\u6bb5\u3002<\/p>\n<h4>4.1 Shuffle \u662f\u4ec0\u4e48<\/h4>\n<p>Shuffle \u7684\u672c\u8d28\u662f&#xff1a;<\/p>\n<p>\u6309\u7167 Key&#xff0c;\u628a\u539f\u672c\u5206\u6563\u5728\u4e0d\u540c Task \u91cc\u7684\u6570\u636e\u91cd\u65b0\u5206\u533a&#xff0c;\u518d\u53d1\u7ed9\u4e0b\u6e38 Task\u3002<\/p>\n<p>\u4f8b\u5982&#xff1a;<\/p>\n<p>\u4e0a\u6e38 Task 1  &#8212;&gt;  A, B, C<br \/>\n\u4e0a\u6e38 Task 2  &#8212;&gt;  A, D, E<br \/>\n\u4e0a\u6e38 Task 3  &#8212;&gt;  B, C, E<\/p>\n<p>\u6d17\u724c\u540e&#xff1a;<\/p>\n<p>\u4e0b\u6e38 Task 1  &#8212;&gt;  A<br \/>\n\u4e0b\u6e38 Task 2  &#8212;&gt;  B<br \/>\n\u4e0b\u6e38 Task 3  &#8212;&gt;  C<br \/>\n&#8230;<\/p>\n<p>\u4f60\u53ef\u4ee5\u628a\u5b83\u7406\u89e3\u6210&#xff1a;<\/p>\n<p>\u539f\u6765\u5927\u5bb6\u662f\u4e71\u5750\u7684&#xff0c;\u73b0\u5728\u8981\u6309\u5ea7\u4f4d\u53f7\u91cd\u65b0\u6392\u3002<\/p>\n<h4>4.2 \u4e0b\u6e38\u5e76\u884c\u5ea6\u600e\u4e48\u5b9a<\/h4>\n<p>Shuffle \u9636\u6bb5\u7684\u5e76\u884c\u5ea6&#xff0c;\u901a\u5e38\u4e0d\u518d\u770b Split&#xff0c;\u800c\u662f\u66f4\u591a\u770b Shuffle \u6570\u636e\u91cf\u3002<\/p>\n<p>Hive \u5e38\u7528\u8fd9\u4e24\u4e2a\u53c2\u6570\u6765\u4f30\u7b97 Reducer \u6570&#xff1a;<\/p>\n<ul>\n<li>hive.exec.reducers.bytes.per.reducer<\/li>\n<li>hive.exec.reducers.max<\/li>\n<\/ul>\n<p>\u5b83\u4eec\u7684\u4f5c\u7528\u53ef\u4ee5\u7406\u89e3\u4e3a&#xff1a;<\/p>\n<p>\u8fd9\u4e00\u5806\u6570\u636e&#xff0c;\u5927\u6982\u8981\u5206\u7ed9\u51e0\u4e2a Reducer \u624d\u5408\u9002&#xff1f;<\/p>\n<h4>4.3 \u4e3a\u4ec0\u4e48\u4f30\u7b97\u4e0d\u4e00\u5b9a\u51c6<\/h4>\n<p>\u73b0\u5b9e\u91cc\u7ecf\u5e38\u4f1a\u9047\u5230\u8fd9\u4e9b\u95ee\u9898&#xff1a;<\/p>\n<ul>\n<li>\u5b9e\u9645\u6570\u636e\u91cf\u548c\u9884\u4f30\u4e0d\u4e00\u81f4&#xff1b;<\/li>\n<li>\u7edf\u8ba1\u4fe1\u606f\u4e0d\u51c6&#xff1b;<\/li>\n<li>\u67d0\u4e9b Key \u5206\u5e03\u7279\u522b\u96c6\u4e2d&#xff1b;<\/li>\n<li>SQL \u903b\u8f91\u6bd4\u8f83\u590d\u6742\u3002<\/li>\n<\/ul>\n<p>\u6240\u4ee5\u7f16\u8bd1\u9636\u6bb5\u7b97\u51fa\u6765\u7684 Reducer \u6570&#xff0c;\u4e0d\u4e00\u5b9a\u5c31\u662f\u6700\u5408\u9002\u7684\u3002<\/p>\n<h4>4.4 \u81ea\u52a8\u5e76\u884c\u5ea6\u7684\u4f5c\u7528<\/h4>\n<p>\u5982\u679c\u5f00\u542f\u4e86 hive.tez.auto.reducer.parallelism&#xff0c;Tez \u53ef\u4ee5\u6839\u636e\u8fd0\u884c\u65f6\u5b9e\u9645\u4ea7\u751f\u7684 Shuffle \u6570\u636e\u91cf\u52a8\u6001\u8c03\u6574\u4e0b\u6e38\u5e76\u884c\u5ea6\u3002<\/p>\n<p>\u5b83\u7684\u597d\u5904\u662f&#xff1a;<\/p>\n<ul>\n<li>\u9884\u4f30\u5c11\u4e86&#xff0c;\u4e0d\u4f1a\u8ba9\u5c11\u6570 Reducer \u625b\u592a\u591a&#xff1b;<\/li>\n<li>\u9884\u4f30\u591a\u4e86&#xff0c;\u4e0d\u4f1a\u5f00\u51fa\u4e00\u5806\u7a7a\u8f6c\u7684 Reducer\u3002<\/li>\n<\/ul>\n<p>\u6240\u4ee5\u5230\u4e86 Shuffle \u9636\u6bb5&#xff0c;\u771f\u6b63\u8981\u5173\u6ce8\u7684\u4e0d\u662f\u201cReducer \u8d8a\u591a\u8d8a\u597d\u201d&#xff0c;\u800c\u662f&#xff1a;<\/p>\n<p>\u6bcf\u4e2a Reducer \u7684\u6570\u636e\u91cf\u662f\u5426\u5408\u7406\u3002<\/p>\n<hr \/>\n<h3>5. Tez \u8c03\u4f18\u600e\u4e48\u505a<\/h3>\n<p>Tez \u7684\u8c03\u4f18&#xff0c;\u672c\u8d28\u4e0a\u5c31\u662f\u56f4\u7ed5\u4e09\u4e2a\u95ee\u9898\u5c55\u5f00&#xff1a;<\/p>\n<li>\u626b\u63cf\u9636\u6bb5\u7684\u5e76\u884c\u5ea6\u591f\u4e0d\u591f&#xff1b;<\/li>\n<li>Shuffle \u9636\u6bb5\u7684\u5e76\u884c\u5ea6\u591f\u4e0d\u591f&#xff1b;<\/li>\n<li>\u5355\u4e2a Task \u7684\u8d44\u6e90\u662f\u4e0d\u662f\u591f\u7528\u3002<\/li>\n<p>\u6240\u4ee5&#xff0c;hive.tez.container.size\u3001Grouping \u53c2\u6570\u548c Reducer \u53c2\u6570&#xff0c;\u5176\u5b9e\u90fd\u5c5e\u4e8e\u540c\u4e00\u4ef6\u4e8b&#xff1a;\u8ba9\u6bcf\u4e2a\u9636\u6bb5\u7684 Task \u65e2\u4e0d\u8981\u592a\u91cd&#xff0c;\u4e5f\u4e0d\u8981\u592a\u788e\u3002<\/p>\n<h4>5.1 \u5355\u4e2a Task \u5185\u5b58\u4e0d\u591f\u65f6&#xff0c;\u5148\u770b hive.tez.container.size<\/h4>\n<p>hive.tez.container.size \u4e3b\u8981\u63a7\u5236\u7684\u662f Tez Task \u5411 YARN \u7533\u8bf7\u7684 Container \u5185\u5b58\u5927\u5c0f\u3002<\/p>\n<p>\u5b83\u5f71\u54cd\u7684\u662f\u5355\u4e2a Task \u7684\u8d44\u6e90\u89c4\u683c&#xff0c;\u4e0d\u662f\u76f4\u63a5\u51b3\u5b9a Task \u6570\u91cf\u3002<\/p>\n<p>\u5982\u679c\u4f60\u770b\u5230\u8fd9\u4e9b\u73b0\u8c61&#xff1a;<\/p>\n<ul>\n<li>Join \u5f88\u5403\u5185\u5b58&#xff1b;<\/li>\n<li>\u805a\u5408\u5f88\u5403\u5185\u5b58&#xff1b;<\/li>\n<li>\u6392\u5e8f\u5f88\u5403\u5185\u5b58&#xff1b;<\/li>\n<li>\u9891\u7e41 OOM&#xff1b;<\/li>\n<li>Full GC \u5f88\u591a\u3002<\/li>\n<\/ul>\n<p>\u90a3\u4e48\u53ef\u4ee5\u8003\u8651\u628a Container \u8c03\u5927\u4e00\u4e9b\u3002<\/p>\n<p>\u4f46\u5982\u679c\u95ee\u9898\u672c\u8d28\u662f\u5e76\u884c\u5ea6\u4e0d\u591f&#xff0c;\u5c31\u4e0d\u80fd\u53ea\u52a0\u5185\u5b58\u3002<\/p>\n<h4>5.2 \u626b\u63cf\u9636\u6bb5\u5e76\u884c\u5ea6\u4e0d\u591f\u65f6&#xff0c;\u5148\u52a8 Grouping<\/h4>\n<p>\u5982\u679c\u95ee\u9898\u672c\u8d28\u662f&#xff1a;<\/p>\n<ul>\n<li>Task \u592a\u5c11&#xff1b;<\/li>\n<li>\u5e76\u884c\u5ea6\u4e0d\u8db3&#xff1b;<\/li>\n<li>\u5355\u4e2a Task \u6570\u636e\u91cf\u592a\u5927\u3002<\/li>\n<\/ul>\n<p>\u90a3\u4f18\u5148\u4e0d\u8981\u5148\u52a0 hive.tez.container.size&#xff0c;\u800c\u662f\u5148\u52a8\u8fd9\u4e9b\u53c2\u6570&#xff1a;<\/p>\n<ul>\n<li>tez.grouping.split-waves<\/li>\n<li>tez.grouping.min-size<\/li>\n<li>tez.grouping.max-size<\/li>\n<\/ul>\n<p>\u8fd9\u51e0\u4e2a\u53c2\u6570\u7684\u76ee\u7684\u5f88\u660e\u786e&#xff1a;\u63a7\u5236\u8f93\u5165 Split \u600e\u4e48\u5408\u5e76&#xff0c;\u8fdb\u800c\u51b3\u5b9a Map Task \u7684\u6570\u91cf\u3002<\/p>\n<p>\u5982\u679c\u626b\u63cf\u9636\u6bb5 Task \u592a\u5c11&#xff1a;<\/p>\n<ul>\n<li>\u63d0\u9ad8 tez.grouping.split-waves&#xff1b;<\/li>\n<li>\u9002\u5f53\u8c03\u5c0f tez.grouping.min-size&#xff1b;<\/li>\n<li>\u5fc5\u8981\u65f6\u68c0\u67e5 tez.grouping.max-size \u662f\u5426\u628a Group \u5361\u5f97\u592a\u5927\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u6837\u505a\u7684\u76ee\u7684&#xff0c;\u662f\u8ba9\u66f4\u591a Split \u88ab\u5206\u5f00\u5904\u7406&#xff0c;\u63d0\u5347 Map \u5e76\u884c\u5ea6\u3002<\/p>\n<h4>5.3 Shuffle \u9636\u6bb5\u5e76\u884c\u5ea6\u4e0d\u591f\u65f6&#xff0c;\u5148\u52a8 Reducer \u76f8\u5173\u53c2\u6570<\/h4>\n<p>\u5982\u679c\u95ee\u9898\u51fa\u5728 Join\u3001Group By \u8fd9\u7c7b\u9700\u8981 Shuffle \u7684\u9636\u6bb5&#xff0c;\u90a3\u91cd\u70b9\u5c31\u4e0d\u662f Grouping&#xff0c;\u800c\u662f Reducer \u5e76\u884c\u5ea6\u3002<\/p>\n<p>\u8fd9\u65f6\u4f18\u5148\u770b&#xff1a;<\/p>\n<ul>\n<li>hive.exec.reducers.bytes.per.reducer<\/li>\n<li>hive.exec.reducers.max<\/li>\n<li>hive.tez.auto.reducer.parallelism<\/li>\n<\/ul>\n<p>\u5982\u679c Shuffle \u9636\u6bb5\u5e76\u884c\u5ea6\u4e0d\u591f&#xff1a;<\/p>\n<ul>\n<li>\u628a hive.exec.reducers.bytes.per.reducer \u8c03\u5c0f&#xff1b;<\/li>\n<li>\u5fc5\u8981\u65f6\u63d0\u9ad8 hive.exec.reducers.max&#xff1b;<\/li>\n<li>\u5f00\u542f hive.tez.auto.reducer.parallelism&#xff0c;\u8ba9\u8fd0\u884c\u65f6\u6839\u636e\u5b9e\u9645 Shuffle \u6570\u636e\u91cf\u52a8\u6001\u8c03\u6574\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u6837\u505a\u7684\u76ee\u7684&#xff0c;\u662f\u8ba9\u6bcf\u4e2a Reducer \u5206\u5230\u7684\u6570\u636e\u66f4\u5408\u7406&#xff0c;\u907f\u514d\u5c11\u6570 Reducer \u625b\u592a\u591a\u6570\u636e&#xff0c;\u4e5f\u907f\u514d\u4e0b\u6e38\u5e76\u884c\u5ea6\u592a\u4f4e\u3002<\/p>\n<h4>5.5 \u600e\u4e48\u5224\u65ad\u8be5\u52a8\u54ea\u4e00\u7c7b\u53c2\u6570<\/h4>\n<p>\u4f60\u53ef\u4ee5\u76f4\u63a5\u6309\u8fd9\u4e2a\u987a\u5e8f\u5224\u65ad&#xff1a;<\/p>\n<ul>\n<li>\u5148\u770b\u662f\u4e0d\u662f\u5355\u4e2a Task \u5185\u5b58\u4e0d\u591f&#xff0c;\u5982\u679c\u662f&#xff0c;\u5148\u52a8 hive.tez.container.size&#xff1b;<\/li>\n<li>\u518d\u770b\u662f\u4e0d\u662f\u626b\u63cf\u9636\u6bb5\u5e76\u884c\u5ea6\u4e0d\u591f&#xff0c;\u5982\u679c\u662f&#xff0c;\u5148\u52a8 Grouping \u53c2\u6570&#xff1b;<\/li>\n<li>\u518d\u770b\u662f\u4e0d\u662f Shuffle \u9636\u6bb5\u5e76\u884c\u5ea6\u4e0d\u591f&#xff0c;\u5982\u679c\u662f&#xff0c;\u5148\u52a8 Reducer \u76f8\u5173\u53c2\u6570&#xff1b;<\/li>\n<li>\u5982\u679c\u5c11\u6570 Task \u7279\u522b\u6162&#xff0c;\u518d\u53bb\u770b\u6570\u636e\u503e\u659c\u3001\u8d85\u5927\u6587\u4ef6\u548c\u6570\u636e\u672c\u5730\u6027\u3002<\/li>\n<\/ul>\n<p>\u4e00\u53e5\u8bdd&#xff1a;<\/p>\n<p>\u8c03\u4f18\u4e0d\u662f\u628a\u53c2\u6570\u5206\u5f00\u770b&#xff0c;\u800c\u662f\u5148\u5224\u65ad\u95ee\u9898\u51fa\u5728\u54ea\u4e2a\u9636\u6bb5&#xff0c;\u518d\u53bb\u52a8\u5bf9\u5e94\u7684\u53c2\u6570\u3002<\/p>\n<hr \/>\n<h3>7. \u603b\u7ed3<\/h3>\n<p>Tez \u4f1a\u628a Hive SQL \u62c6\u6210\u591a\u4e2a\u9636\u6bb5&#xff0c;\u6bcf\u4e2a\u9636\u6bb5\u518d\u62c6\u6210\u591a\u4e2a Task&#xff1b;\u626b\u63cf\u9636\u6bb5\u4e3b\u8981\u901a\u8fc7 Grouping \u51b3\u5b9a Map \u5e76\u884c\u5ea6&#xff0c;Shuffle \u9636\u6bb5\u4e3b\u8981\u901a\u8fc7 Shuffle \u6570\u636e\u91cf\u548c Reducer \u4f30\u7b97\u51b3\u5b9a\u4e0b\u6e38\u5e76\u884c\u5ea6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tez<br \/>\n\u6700\u8fd1\u9762\u8bd5pdd\u53d1\u73b0\u4ed6\u4eec\u7adf\u7136\u5728\u7528 Hive on Tez &#xff0c;\u800c\u4e14\u5f88\u591a\u4eba\u5bf9 Tez \u7684\u7406\u89e3&#xff0c;\u5f80\u5f80\u505c\u7559\u5728\u201c\u5b83\u80fd\u63d0\u901f\u201d\u8fd9\u4e00\u5c42\u3002\u6240\u4ee5\u5199\u4e0b\u8fd9\u7bc7\u3002<br \/>\n\u8fd9\u7bc7\u6587\u7ae0\u5c31\u56f4\u7ed5\u4e24\u4e2a\u95ee\u9898\u5c55\u5f00&#xff1a;<br \/>\nTez \u5230\u5e95\u662f\u600e\u4e48\u8dd1\u8d77\u6765\u7684&#xff1f;Tez \u7684\u6027\u80fd\u95ee\u9898\u5e94\u8be5\u600e\u4e48\u770b\u3001\u600e\u4e48\u8c03&#xff1f;1. Tez \u662f\u4ec0\u4e48<br \/>\nTez \u672c\u8d28\u4e0a\u662f\u4e00\u4e2a DAG \u6267\u884c\u5f15\u64ce\u3002<br \/>\n\u5728 Hive \u573a\u666f\u91cc&#xff0c;SQL \u4e0d\u4f1a\u76f4\u63a5\u88ab\u201c\u6574\u6761\u6267\u884c\u201d&#xff0c;\u800c\u662f\u5148\u7ecf\u8fc7\u7f16\u8bd1&amp;#xff0<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[482,56,2330],"topic":[],"class_list":["post-101893","post","type-post","status-publish","format-standard","hentry","category-server","tag-hive","tag-56","tag-2330"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Tez\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/101893.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tez\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Tez \u6700\u8fd1\u9762\u8bd5pdd\u53d1\u73b0\u4ed6\u4eec\u7adf\u7136\u5728\u7528 Hive on Tez &#xff0c;\u800c\u4e14\u5f88\u591a\u4eba\u5bf9 Tez \u7684\u7406\u89e3&#xff0c;\u5f80\u5f80\u505c\u7559\u5728\u201c\u5b83\u80fd\u63d0\u901f\u201d\u8fd9\u4e00\u5c42\u3002\u6240\u4ee5\u5199\u4e0b\u8fd9\u7bc7\u3002 \u8fd9\u7bc7\u6587\u7ae0\u5c31\u56f4\u7ed5\u4e24\u4e2a\u95ee\u9898\u5c55\u5f00&#xff1a; Tez \u5230\u5e95\u662f\u600e\u4e48\u8dd1\u8d77\u6765\u7684&#xff1f;Tez \u7684\u6027\u80fd\u95ee\u9898\u5e94\u8be5\u600e\u4e48\u770b\u3001\u600e\u4e48\u8c03&#xff1f;1. Tez \u662f\u4ec0\u4e48 Tez \u672c\u8d28\u4e0a\u662f\u4e00\u4e2a DAG \u6267\u884c\u5f15\u64ce\u3002 \u5728 Hive \u573a\u666f\u91cc&#xff0c;SQL \u4e0d\u4f1a\u76f4\u63a5\u88ab\u201c\u6574\u6761\u6267\u884c\u201d&#xff0c;\u800c\u662f\u5148\u7ecf\u8fc7\u7f16\u8bd1&amp;#xff0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/101893.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-07T11:17:22+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/101893.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/101893.html\",\"name\":\"Tez\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-07T11:17:22+00:00\",\"dateModified\":\"2026-09-07T11:17:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/101893.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/101893.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/101893.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tez\u8be6\u89e3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tez\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/101893.html","og_locale":"zh_CN","og_type":"article","og_title":"Tez\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Tez \u6700\u8fd1\u9762\u8bd5pdd\u53d1\u73b0\u4ed6\u4eec\u7adf\u7136\u5728\u7528 Hive on Tez &#xff0c;\u800c\u4e14\u5f88\u591a\u4eba\u5bf9 Tez \u7684\u7406\u89e3&#xff0c;\u5f80\u5f80\u505c\u7559\u5728\u201c\u5b83\u80fd\u63d0\u901f\u201d\u8fd9\u4e00\u5c42\u3002\u6240\u4ee5\u5199\u4e0b\u8fd9\u7bc7\u3002 \u8fd9\u7bc7\u6587\u7ae0\u5c31\u56f4\u7ed5\u4e24\u4e2a\u95ee\u9898\u5c55\u5f00&#xff1a; Tez \u5230\u5e95\u662f\u600e\u4e48\u8dd1\u8d77\u6765\u7684&#xff1f;Tez \u7684\u6027\u80fd\u95ee\u9898\u5e94\u8be5\u600e\u4e48\u770b\u3001\u600e\u4e48\u8c03&#xff1f;1. Tez \u662f\u4ec0\u4e48 Tez \u672c\u8d28\u4e0a\u662f\u4e00\u4e2a DAG \u6267\u884c\u5f15\u64ce\u3002 \u5728 Hive \u573a\u666f\u91cc&#xff0c;SQL \u4e0d\u4f1a\u76f4\u63a5\u88ab\u201c\u6574\u6761\u6267\u884c\u201d&#xff0c;\u800c\u662f\u5148\u7ecf\u8fc7\u7f16\u8bd1&amp;#xff0","og_url":"https:\/\/www.wsisp.com\/helps\/101893.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-07T11:17:22+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/101893.html","url":"https:\/\/www.wsisp.com\/helps\/101893.html","name":"Tez\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-07T11:17:22+00:00","dateModified":"2026-09-07T11:17:22+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/101893.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/101893.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/101893.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Tez\u8be6\u89e3"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/101893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=101893"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/101893\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=101893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=101893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=101893"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=101893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}