{"id":630,"date":"2025-09-12T23:19:01","date_gmt":"2025-09-12T15:19:01","guid":{"rendered":"http:\/\/www.applicationsofllm.com\/?p=630"},"modified":"2025-09-16T23:21:07","modified_gmt":"2025-09-16T15:21:07","slug":"hadoop%e3%80%81spark%e9%83%bdout%e4%ba%86%ef%bc%9f5%e7%a7%8d%e5%a4%a7%e6%95%b0%e6%8d%ae%e6%a1%86%e6%9e%b6%e6%80%8e%e4%b9%88%e9%80%89%e6%9b%b4%e9%9d%a0%e8%b0%b1%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/www.applicationsofllm.com\/index.php\/2025\/09\/12\/hadoop%e3%80%81spark%e9%83%bdout%e4%ba%86%ef%bc%9f5%e7%a7%8d%e5%a4%a7%e6%95%b0%e6%8d%ae%e6%a1%86%e6%9e%b6%e6%80%8e%e4%b9%88%e9%80%89%e6%9b%b4%e9%9d%a0%e8%b0%b1%ef%bc%9f\/","title":{"rendered":"Hadoop\u3001Spark\u90fdout\u4e86\uff1f5\u79cd\u5927\u6570\u636e\u6846\u67b6\u600e\u4e48\u9009\u66f4\u9760\u8c31\uff1f"},"content":{"rendered":"\n<p><strong>\u6570\u636e\u5904\u7406\u6846\u67b6\u6709\u54ea\u4e9b\uff1f<\/strong><\/p>\n\n\n\n<p>\u9009\u6846\u67b6\u524d\uff0c\u5f97\u5148\u660e\u767d\u5b83\u4eec\u6700\u6839\u672c\u7684<strong>\u8bbe\u8ba1\u601d\u8def\uff1a<\/strong><\/p>\n\n\n\n<p>\u4e0d\u540c\u7684\u5904\u7406\u6a21\u5f0f\uff0c\u51b3\u5b9a\u4e86\u5b83\u4eec\u80fd\u5e72\u4ec0\u4e48\u3001\u4e0d\u80fd\u5e72\u4ec0\u4e48\u3002<\/p>\n\n\n\n<p>\u7b80\u5355\u8bf4\uff0c\u6570\u636e\u5904\u7406\u6846\u67b6<strong>\u5927\u81f4\u5206\u4e09\u7c7b\uff1a<\/strong><\/p>\n\n\n\n<p><strong>1. \u7eaf\u6279\u5904\u7406\u6846\u67b6\uff08\u4ee5Apache Hadoop\u4e3a\u4f8b\uff09<\/strong><\/p>\n\n\n\n<p><strong>\u80fd\u89e3\u51b3\u4ec0\u4e48\u95ee\u9898\uff1a<\/strong><\/p>\n\n\n\n<p>\u4e13\u95e8\u5904\u7406\u90a3\u4e9b\u5b58\u5728\u786c\u76d8\u91cc\u7684\u6d77\u91cf\u5386\u53f2\u6570\u636e\uff0c\u6bd4\u5982\u5206\u6790\u8fc7\u53bb\u4e00\u5e74\u7684\u7528\u6237\u884c\u4e3a\u3001\u7edf\u8ba1\u5b63\u5ea6\u9500\u552e\u62a5\u8868\uff0c\u8fd9\u79cd\u573a\u666f\u5bf9\u5b9e\u65f6\u6027\u8981\u6c42\u4e0d\u9ad8\uff0cT+1\u751a\u81f3T+7\u7684\u5ef6\u8fdf\u90fd\u80fd\u63a5\u53d7\u3002<\/p>\n\n\n\n<p><strong>\u6838\u5fc3\u6784\u6210\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>MapReduce\u8d1f\u8d23\u8ba1\u7b97\uff0c<\/li>\n\n\n\n<li>HDFS\u8d1f\u8d23\u5b58\u6570\u636e\uff0c<\/li>\n<\/ul>\n\n\n\n<p>\u8fd9\u4e24\u4e2a\u662f\u57fa\u7840\u3002<\/p>\n\n\n\n<p><strong>\u4f18\u52bf\u5f88\u5b9e\u5728\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u80fd\u625b\u4f4fPB\u7ea7\u751a\u81f3EB\u7ea7\u7684\u6570\u636e\u91cf\uff0c\u8fd9\u5728\u73b0\u5728\u4f9d\u7136\u5f88\u80fd\u6253\uff1b<\/li>\n\n\n\n<li>\u5bb9\u9519\u6027\u7279\u522b\u597d\uff0c\u673a\u5668\u574f\u4e86\u6570\u636e\u4e5f\u4e22\u4e0d\u4e86\uff0c\u56e0\u4e3a\u5b83\u9ed8\u8ba4\u5b58\u4e09\u4efd\uff1b<\/li>\n\n\n\n<li>\u751f\u6001\u7279\u522b\u6210\u719f\uff0cHive\u7528\u6765\u5199SQL\u5206\u6790\uff0cHBase\u5b58\u975e\u7ed3\u6784\u5316\u6570\u636e\uff0c\u7528\u8d77\u6765\u987a\u624b\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>\u4f46\u77ed\u677f\u4e5f\u660e\u663e\uff1a<\/strong><\/p>\n\n\n\n<p>\u5904\u7406\u901f\u5ea6\u6162\uff0c\u52a8\u8f84\u51e0\u5206\u949f\u751a\u81f3\u51e0\u5c0f\u65f6\uff0c\u56e0\u4e3a\u4e2d\u95f4\u7ed3\u679c\u603b\u5f80\u786c\u76d8\u4e0a\u5199\u3002<\/p>\n\n\n\n<p><strong>\u73b0\u5728\u6765\u770b\uff1a<\/strong><\/p>\n\n\n\n<p>\u771f<strong>\u6ca1\u8fc7\u65f6\uff01<\/strong>\u8fd8\u662f\u5904\u7406\u8d85\u5927\u89c4\u6a21\u5386\u53f2\u6570\u636e\u6210\u672c\u6700\u4f4e\u7684\u65b9\u6848\uff0c\u5f88\u591a\u4f01\u4e1a\u7684\u79bb\u7ebf\u6570\u636e\u4ed3\u5e93\uff0c\u6838\u5fc3\u8fd8\u662fHadoop\u90a3\u4e00\u5957\u3002<\/p>\n\n\n\n<p><strong>\u4e00\u53e5\u8bdd\u603b\u7ed3\uff1a<\/strong>\u91cf\u5927\u3001\u4e0d\u6025\u3001\u8981\u7701\u94b1\uff0c\u9009\u5b83\u51c6\u6ca1\u9519\u3002<\/p>\n\n\n\n<p><strong>2. \u7eaf\u6d41\u5904\u7406\u6846\u67b6\uff08Storm\u548cSamza\uff09<\/strong><\/p>\n\n\n\n<p><strong>\u80fd\u89e3\u51b3\u4ec0\u4e48\u95ee\u9898\uff1a<\/strong><\/p>\n\n\n\n<p>\u5904\u7406\u90a3\u79cd\u6e90\u6e90\u4e0d\u65ad\u6765\u7684\u6570\u636e\u6d41\uff0c\u6bd4\u5982\u7528\u6237\u5b9e\u65f6\u70b9\u51fb\u3001\u8ba2\u5355\u652f\u4ed8\u4fe1\u606f\uff0c\u8981\u6c42\u6beb\u79d2\u7ea7\u54cd\u5e94\uff0c\u50cf\u91d1\u878d\u4ea4\u6613\u7684\u5b9e\u65f6\u98ce\u63a7\uff0c\u5c31\u9760\u5b83\u3002<\/p>\n\n\n\n<p>\u8fd9<strong>\u4e24\u4e2a\u6846\u67b6\u7684\u5dee\u522b<\/strong>\uff0c\u5f97\u5206\u6e05\u695a\uff1a<\/p>\n\n\n\n<p><strong>\u5c40\u9650\u4e5f\u5f97\u8bf4\u6e05\u695a\uff1a<\/strong><\/p>\n\n\n\n<p>\u53ea\u80fd\u5904\u7406\u90a3\u79cd\u6ca1\u5b8c\u6ca1\u4e86\u7684\u6570\u636e\u6d41\uff0c\u8981\u662f\u7ed9\u5b83\u4e00\u4e2a\u56fa\u5b9a\u5927\u5c0f\u7684\u6570\u636e\u96c6\uff0c\u6bd4\u5982\u4e00\u4e2a\u6708\u7684\u8ba2\u5355\u8868\uff0c\u5b83\u5c31\u6ca1\u529e\u6cd5\u76f4\u63a5\u5904\u7406\u4e86\u3002<\/p>\n\n\n\n<p><strong>\u4e00\u53e5\u8bdd\u603b\u7ed3\uff1a<\/strong>\u6570\u636e\u4e0d\u505c\u6765\u3001\u8981\u6c42\u9a6c\u4e0a\u7b97\uff0c\u5c31\u4ece\u8fd9\u4e24\u4e2a\u91cc\u6311\u3002<\/p>\n\n\n\n<p><strong>3. \u6df7\u5408\u5904\u7406\u6846\u67b6\uff08Spark\u548cFlink\uff09<\/strong><\/p>\n\n\n\n<p><strong>\u6709\u4ec0\u4e48\u7528\uff1a<\/strong><\/p>\n\n\n\n<p>\u73b0\u5728\u5f88\u591a\u4e1a\u52a1\u65e2\u8981\u6709\u5b9e\u65f6\u5904\u7406\uff0c\u53c8\u5f97\u5206\u6790\u5386\u53f2\u6570\u636e\uff0c\u603b\u4e0d\u80fd\u641e\u4e24\u5957\u7cfb\u7edf\u5427\uff1f<\/p>\n\n\n\n<p>\u8fd9\u4e24\u4e2a\u6846\u67b6\u5c31\u662f\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u7684\uff0c\u80fd\u540c\u65f6\u641e\u5b9a\u6279\u5904\u7406\u548c\u6d41\u5904\u7406\u3002<\/p>\n\n\n\n<p>\uff081\uff09\u5148\u8bf4\u8bf4<strong>Spark\uff1a<\/strong><\/p>\n\n\n\n<p>\u5b83\u7684<strong>\u6838\u5fc3\u601d\u8def<\/strong>\u662f\uff1a<\/p>\n\n\n\n<p>\u628a\u6d41\u6570\u636e\u5207\u6210\u4e00\u5c0f\u6bb5\u4e00\u5c0f\u6bb5\u7684\uff0c\u5f53\u6210\u5c0f\u6279\u6b21\u6765\u5904\u7406\uff0c\u8fd9\u5c31\u662f\u6240\u8c13\u7684&#8221;<strong>\u5fae\u6279\u5904\u7406<\/strong>&#8220;\u3002<\/p>\n\n\n\n<p><strong>\u4e3a\u4ec0\u4e48\u5feb\uff1a<\/strong><\/p>\n\n\n\n<p>\u5b83\u4f1a\u628a\u4e2d\u95f4\u7ed3\u679c\u5b58\u5728\u5185\u5b58\u91cc\uff0c\u800c\u4e0d\u662f\u50cfHadoop\u90a3\u6837\u5f80\u786c\u76d8\u4e0a\u5199\uff0c\u6240\u4ee5\u6bd4MapReduce\u5feb\u5f97\u591a\uff0c\u636e\u8bf4\u80fd\u5feb100\u500d\uff0c\u5b9e\u9645\u7528\u4e0b\u6765\u786e\u5b9e\u4f53\u611f\u660e\u663e\u3002<\/p>\n\n\n\n<p><strong>\u8fd8\u6709\u4e2a\u597d\u5904\uff1a<\/strong><\/p>\n\n\n\n<p>\u5b83\u80fd\u628a\u8ba1\u7b97\u8fc7\u7a0b\u505a\u6210\u4e00\u4e2aDAG\u56fe\uff08\u6709\u5411\u65e0\u73af\u56fe\uff09\uff0c\u81ea\u52a8\u4f18\u5316\u6267\u884c\u987a\u5e8f\uff0c\u6bd4\u5982\u54ea\u4e9b\u6b65\u9aa4\u80fd\u5408\u5e76\u3001\u54ea\u4e9b\u80fd\u5e76\u884c\uff0c\u7701\u4e0d\u5c11\u4e8b\u3002<\/p>\n\n\n\n<p>\u4e3a\u4e86\u66f4\u9ad8\u6548\u7684\u5b8c\u6210\u8fd9\u4e2a\u6570\u636e\u5904\u7406\u548c\u8ba1\u7b97\u7684\u8fc7\u7a0b\uff0c\u53ef\u4ee5\u501f\u52a9<strong>\u4f4e\u4ee3\u7801\/\u9ad8\u65f6\u6548\u7684\u6570\u636e\u96c6\u6210\u5e73\u53f0<\/strong>\uff0c\u6bd4\u5982FineDataLink\uff0c\u5b83\u53ef\u4ee5\u8f7b\u677e\u5730<strong>\u8fde\u63a5\u591a\u79cd\u6570\u636e\u6e90\uff0c\u5305\u62ec\u6570\u636e\u5e93\u3001\u6587\u4ef6\u3001\u4e91\u5b58\u50a8\u7b49<\/strong>\uff0c\u800c\u4e14\u652f\u6301\u5927\u6570\u636e\u91cf\u3002\u8fd8\u80fd<strong>\u8fdb\u884c\u6570\u636e\u6e05\u7406\u548c\u6570\u636e\u5206\u6790\uff0c\u5e76\u5c06\u6e05\u7406\u540e\u7684\u6570\u636e\u5feb\u901f\u5e94\u7528\u5230\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u4e2d\u3002<\/strong><\/p>\n\n\n\n<p>FineDataLink\u4f53\u9a8c\u5730\u5740\u2192<strong>https:\/\/s.fanruan.com\/64fht<\/strong>\uff08\u590d\u5236\u5230\u6d4f\u89c8\u5668\u6253\u5f00\uff09<\/p>\n\n\n\n<p>\uff082\uff09\u518d\u770b<strong>Flink\uff1a<\/strong><\/p>\n\n\n\n<p>\u5b83\u7684<strong>\u6700\u5927\u7279\u70b9\uff1a<\/strong><\/p>\n\n\n\n<p>\u4e0d\u662f\u5207\u5206\u6210\u5c0f\u6279\u6b21\uff0c\u800c\u662f\u6765\u4e00\u6761\u6570\u636e\u5c31\u5904\u7406\u4e00\u6761\uff0c\u8fd9\u53eb&#8221;<strong>\u771f\u6d41\u5904\u7406<\/strong>&#8220;\uff0c\u6240\u4ee5\u5b9e\u65f6\u6027\u6bd4Spark\u66f4\u597d\u3002<\/p>\n\n\n\n<p><strong>\u72b6\u6001\u7ba1\u7406\u662f\u4eae\u70b9\uff1a<\/strong><\/p>\n\n\n\n<p>\u5904\u7406\u8fc7\u7a0b\u4e2d\u4ea7\u751f\u7684\u4e2d\u95f4\u7ed3\u679c\uff0c\u6bd4\u5982\u7d2f\u8ba1\u9500\u91cf\u3001\u7528\u6237\u5728\u7ebf\u65f6\u957f\u7b49\u7b49\uff0c\u5b83\u80fd\u81ea\u5df1\u7ba1\u597d\uff0c\u4e0d\u7528\u62c5\u5fc3\u6570\u636e\u4e22\u4e86\u8981\u91cd\u65b0\u7b97\uff0c\u8fd9\u5bf9\u9700\u8981\u7cbe\u786e\u7edf\u8ba1\u7684\u573a\u666f\u592a\u91cd\u8981\u4e86\u3002<\/p>\n\n\n\n<p><strong>\u89e3\u51b3\u4e86\u4e2a\u5927\u95ee\u9898\uff1a<\/strong><\/p>\n\n\n\n<p>\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u96be\u514d\u6709\u5ef6\u8fdf\u6216\u4e71\u5e8f\uff0c<strong>Flink\u80fd\u6839\u636e\u6570\u636e\u672c\u8eab\u5e26\u7684\u65f6\u95f4\u6233\u6765\u5904\u7406<\/strong>\uff0c\u4e0d\u4f1a\u56e0\u4e3a\u6570\u636e\u5230\u5f97\u665a\u5c31\u7b97\u9519\uff0c\u542c\u7740\u662f\u4e0d\u662f\u5f88\u719f\uff1f\u4f46\u5f88\u591a\u5b9e\u65f6\u573a\u666f\u90fd\u683d\u5728\u4e71\u5e8f\u6570\u636e\u4e0a\u3002<\/p>\n\n\n\n<p><strong>\u4e00\u53e5\u8bdd\u603b\u7ed3\uff1a<\/strong>\u6279\u5904\u7406\u548c\u6d41\u5904\u7406\u90fd\u5f97\u5e72\uff0c\u5c31\u4ece\u8fd9\u4e24\u4e2a\u91cc\u9009\u3002<\/p>\n\n\n\n<p><strong>Spark\u548cFlink\u5230\u5e95\u600e\u4e48\u9009<\/strong><\/p>\n\n\n\n<p>\u5f88\u591a\u4eba\u7ea0\u7ed3\u8fd9\u4e24\u4e2a\u6846\u67b6\uff0c\u6211\u7528\u8fc7\u6765\u4eba\u7684\u7ecf\u9a8c\u544a\u8bc9\u4f60\uff0c\u522b\u53ea\u770b\u522b\u4eba\u8bf4\u54ea\u4e2a\u706b\uff0c\u5f97\u770b\u81ea\u5df1\u7684\u5b9e\u9645\u9700\u6c42\u3002<\/p>\n\n\n\n<p><strong>\u54b1\u4eec\u4e00\u6761\u6761\u5bf9\u6bd4\u7740\u8bf4\uff1a<\/strong><\/p>\n\n\n\n<p><strong>\u4e3e\u4e24\u4e2a\u771f\u5b9e\u4f8b\u5b50\u4f60\u5c31\u660e\u767d\u4e86\uff1a<\/strong><\/p>\n\n\n\n<p>\u6709\u5bb6\u505a\u76f4\u64ad\u7684\u516c\u53f8\uff0c\u8981\u5b9e\u65f6\u7edf\u8ba1\u6bcf\u4e2a\u4e3b\u64ad\u7684\u5728\u7ebf\u4eba\u6570\uff0c\u5ef6\u8fdf\u4e0d\u80fd\u8d85\u8fc71\u79d2\uff0c\u7528Spark Structured Streaming\u5c31\u591f\u4e86\uff0c\u90e8\u7f72\u7b80\u5355\uff0c\u56e2\u961f\u4e5f\u719f\u3002<\/p>\n\n\n\n<p><strong>\u4f46\u5982\u679c\uff1a<\/strong><\/p>\n\n\n\n<p>\u662f\u505a\u9ad8\u9891\u4ea4\u6613\u7684\uff0c\u6bcf\u7b14\u8ba2\u5355\u90fd\u5f97\u5b9e\u65f6\u7b97\u98ce\u9669\uff0c\u5dee\u4e00\u6beb\u79d2\u90fd\u53ef\u80fd\u51fa\u95ee\u9898\uff0c\u8fd9\u79cd\u60c5\u51b5\u5c31\u5f97\u7528Flink\uff0c<strong>\u5b83\u7684\u4f4e\u5ef6\u8fdf\u548c\u72b6\u6001\u51c6\u786e\u6027\u66f4\u9760\u8c31\u3002<\/strong><\/p>\n\n\n\n<p>\u4e00\u53e5\u8bdd\u603b\u7ed3\uff1a\u8981\u6c42\u4e0d\u9ad8\u7684\u5b9e\u65f6\u573a\u666f\u9009Spark\uff0c\u6781\u81f4\u5b9e\u65f6\u548c\u590d\u6742\u72b6\u6001\u7ba1\u7406\u9009Flink\u3002<\/p>\n\n\n\n<p><strong>5\u6b65\u641e\u5b9a\u5927\u6570\u636e\u6846\u67b6\u9009\u578b<\/strong><\/p>\n\n\n\n<p>\u6211\u6574\u7406\u4e86\u4e00\u5957\u6b65\u9aa4\uff0c\u7167\u7740\u8d70\uff0c\u57fa\u672c\u4e0d\u4f1a\u51fa\u9519\uff1a<\/p>\n\n\n\n<p><strong>1. \u5148\u770b\u6570\u636e\u662f\u56fa\u5b9a\u7684\u8fd8\u662f\u4e0d\u56fa\u5b9a\u7684<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5982\u679c\u662f\u56fa\u5b9a\u5927\u5c0f\u7684\u6570\u636e\u96c6\uff0c\u90a3\u5c31\u662f\u6279\u5904\u7406\u573a\u666f\uff1b<\/li>\n\n\n\n<li>\u5982\u679c\u662f\u4e0d\u505c\u4ea7\u751f\u7684\u6570\u636e\uff0c\u90a3\u5c31\u662f\u6d41\u5904\u7406\u573a\u666f\uff1b<\/li>\n\n\n\n<li>\u8981\u662f\u4e24\u79cd\u90fd\u6709\uff0c\u5c31\u9009\u6df7\u5408\u6846\u67b6\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>2. \u6279\u5904\u7406\u573a\u666f\u600e\u4e48\u9009<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6570\u636e\u91cf\u7279\u522b\u5927\uff0c\u53c8\u60f3\u7701\u94b1\uff0c\u56e2\u961f\u5bf9Hadoop\u4e5f\u719f\uff0c\u9009Hadoop\u51c6\u6ca1\u9519\uff1b<\/li>\n\n\n\n<li>\u6570\u636e\u91cf\u4e2d\u7b49\uff0c\u60f3\u7b97\u5f97\u5feb\u70b9\uff0c\u6bd4\u5982\u6bcf\u5929\u7684\u62a5\u8868\u4e24\u5c0f\u65f6\u5185\u8981\u51fa\u6765\uff0c\u9009Spark\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>3. \u6d41\u5904\u7406\u573a\u666f\u600e\u4e48\u9009<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5ef6\u8fdf\u8981\u6c42\u7279\u522b\u9ad8\uff0c\u9009Storm\u6216Flink\uff1b<\/li>\n\n\n\n<li>\u5df2\u7ecf\u5728\u7528Kafka\u548cYARN\uff0c\u60f3\u7701\u70b9\u4e8b\uff0c\u9009Samza\uff1b<\/li>\n\n\n\n<li>\u6570\u636e\u7ecf\u5e38\u4e71\u5e8f\uff0c\u8fd8\u5f97\u4fdd\u8bc1\u6bcf\u6761\u6570\u636e\u53ea\u7b97\u4e00\u6b21\uff0c\u9009Flink\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>4. \u6df7\u5408\u6846\u67b6\u573a\u666f\u600e\u4e48\u9009<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u516c\u53f8\u5df2\u7ecf\u6709Hadoop\u96c6\u7fa4\u4e86\uff0c\u4e0d\u60f3\u91cd\u65b0\u642d\u73af\u5883\uff0c\u9009Spark\uff0c\u80fd\u76f4\u63a5\u7528\u73b0\u6709\u8d44\u6e90\uff1b<\/li>\n\n\n\n<li>\u65b0\u7cfb\u7edf\u5efa\u8bbe\uff0c\u53c8\u7279\u522b\u770b\u91cd\u5b9e\u65f6\u6027\uff0c\u9009Flink\u66f4\u5408\u9002\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>5. \u522b\u5fd8\u4e86\u8fd9\u51e0\u4e2a\u9690\u85cf\u56e0\u7d20<\/strong><\/p>\n\n\n\n<p><strong>\u56e2\u961f\u4f1a\u4ec0\u4e48\uff1a<\/strong><\/p>\n\n\n\n<p>\u8981\u662f\u5927\u5bb6\u90fd\u662f\u5199Python\u7684\uff0cSpark\u7684Python API\u66f4\u987a\u624b\uff1b<\/p>\n\n\n\n<p><strong>\u51fa\u4e86\u95ee\u9898\u80fd\u641e\u5b9a\u5417\uff1a<\/strong><\/p>\n\n\n\n<p>Flink\u7684\u72b6\u6001\u7ba1\u7406\u867d\u7136\u5f3a\uff0c\u4f46\u8c03\u4f18\u6bd4Spark\u590d\u6742\uff0c\u5c0f\u56e2\u961f\u5f97\u6382\u91cf\u6382\u91cf\uff1b<\/p>\n\n\n\n<p><strong>\u670d\u52a1\u5668\u591f\u4e0d\u591f\u597d\uff1a<\/strong><\/p>\n\n\n\n<p>Spark\u9760\u5185\u5b58\u63d0\u901f\uff0c\u670d\u52a1\u5668\u5185\u5b58\u5c0f\u4e86\u4e0d\u884c\uff1bFlink\u5bf9CPU\u8981\u6c42\u9ad8\uff0c\u8001\u673a\u5668\u53ef\u80fd\u625b\u4e0d\u4f4f\u3002<\/p>\n\n\n\n<p>\u542c\u7740\u662f\u4e0d\u662f\u5f88\u6e05\u6670\uff1f\u5176\u5b9e\u6838\u5fc3\u5c31\u662f\uff1a\u522b\u8ffd\u65b0\uff0c<strong>\u770b\u81ea\u5df1\u7684\u4e1a\u52a1\u3001\u56e2\u961f\u548c\u8d44\u6e90\u3002<\/strong><\/p>\n\n\n\n<p><strong>\u56db\u3001\u5927\u6570\u636e\u6846\u67b6\u7684\u6f14\u53d8\u8d8b\u52bf<\/strong><\/p>\n\n\n\n<p>\u7ecf\u5e38\u6709\u4eba\u95ee\u6211\uff1a&#8221;\u73b0\u5728\u90fd\u5728\u7528Flink\u4e86\uff0cSpark\u662f\u4e0d\u662f\u8981\u4e0d\u884c\u4e86\uff1f&#8221;<\/p>\n\n\n\n<p>\u6211\u5f97\u8bf4\u5b9e\u5728\u8bdd\uff1a<\/p>\n\n\n\n<p><strong>1.\u65e9\u671f\u7684Hadoop<\/strong><\/p>\n\n\n\n<p>\u867d\u7136\u6162\uff0c\u4f46\u5728\u5b58\u6d77\u91cf\u51b7\u6570\u636e\u3001\u505a\u4f4e\u6210\u672c\u79bb\u7ebf\u5206\u6790\u8fd9\u5757\uff0c\u6682\u65f6\u8fd8\u6ca1\u8c01\u80fd\u5b8c\u5168\u66ff\u4ee3\u5b83\u3002\u5f88\u591a\u516c\u53f8\u7684\u6838\u5fc3\u6570\u636e\u4ed3\u5e93\uff0c\u5e95\u5c42\u8fd8\u662fHDFS\uff0c\u8fd9\u5c31\u662f\u660e\u8bc1\u3002<\/p>\n\n\n\n<p><strong>2.\u540e\u6765\u7684Spark<\/strong><\/p>\n\n\n\n<p>\u5728\u6279\u5904\u7406\u9886\u57df\u8fd8\u662f\u625b\u628a\u5b50\uff0c\u5c24\u5176\u662f\u548cHive\u7ed3\u5408\u505a\u6570\u636e\u5206\u6790\uff0c\u6210\u719f\u7a33\u5b9a\uff0c\u7528\u7684\u4eba\u6700\u591a\uff0c\u77ed\u65f6\u95f4\u5185\u5730\u4f4d\u52a8\u4e0d\u4e86\u3002<\/p>\n\n\n\n<p><strong>3.\u5982\u4eca\u7684Flink<\/strong><\/p>\n\n\n\n<p>\u5728\u5b9e\u65f6\u5904\u7406\u4e0a\u786e\u5b9e\u5f3a\uff0c\u4f46\u5b83\u7684\u751f\u6001\u8fd8\u5728\u5b8c\u5584\uff0c\u6709\u4e9b\u573a\u666f\u7528\u8d77\u6765\u4e0d\u5982Spark\u987a\u624b\uff0c\u522b\u76f2\u76ee\u8ddf\u98ce\u3002<\/p>\n\n\n\n<p><strong>\u6211\u89c1\u8fc7\u4e0d\u5c11\u56e2\u961f\uff1a<\/strong><\/p>\n\n\n\n<p>\u660e\u660eSpark\u5c31\u80fd\u641e\u5b9a\u7684\u4e8b\uff0c\u975e\u8981\u4e0aFlink\uff0c\u7ed3\u679c\u8fd0\u7ef4\u6210\u672c\u7ffb\u500d\uff0c\u95ee\u9898\u8fd8\u4e00\u5806\u3002<\/p>\n\n\n\n<p><strong>\u5176\u5b9e\uff1a<\/strong><\/p>\n\n\n\n<p>90%\u7684\u4e1a\u52a1\u573a\u666f\uff0cSpark\u7684\u79d2\u7ea7\u5ef6\u8fdf\u5b8c\u5168\u591f\u7528\uff0c\u771f\u6ca1\u5fc5\u8981\u4e3a\u4e86\u90a3\u96f6\u70b9\u51e0\u79d2\u7684\u5dee\u8ddd\uff0c\u628a\u81ea\u5df1\u6298\u817e\u5f97\u591f\u545b\u3002<\/p>\n\n\n\n<p><strong>\u603b\u7ed3<\/strong><\/p>\n\n\n\n<p><strong>\u6280\u672f\u6ca1\u6709\u597d\u574f\uff0c\u53ea\u6709\u5408\u4e0d\u5408\u9002\u3002<\/strong>\u505a\u6570\u636e\u8fd9\u4e48\u591a\u5e74\uff0c\u6211\u4e00\u76f4\u8ba4\u4e3a\uff1a<\/p>\n\n\n\n<p>\u9009\u6846\u67b6\u5c31\u50cf\u9009\u5de5\u5177\uff0c\u87ba\u4e1d\u5200\u518d\u65e7\uff0c\u80fd\u62e7\u597d\u87ba\u4e1d\u5c31\u662f\u597d\u5de5\u5177\uff1b\u65b0\u51fa\u7684\u6273\u624b\u518d\u70ab\uff0c\u7528\u4e0d\u60ef\u4e5f\u662f\u767d\u642d\u3002<\/p>\n\n\n\n<p><strong>\u4e0b\u6b21\u518d\u542c\u5230&#8221;XX\u6846\u67b6\u8fc7\u65f6\u4e86&#8221;\u8fd9\u79cd\u8bdd\uff0c\u5148\u522b\u6025\u7740\u4fe1\uff0c\u60f3\u60f3\u81ea\u5df1\u7684\u4e1a\u52a1\u9700\u8981\u4ec0\u4e48\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6570\u636e\u591a\u5927\uff1f<\/li>\n\n\n\n<li>\u8981\u591a\u5feb\u51fa\u7ed3\u679c\uff1f<\/li>\n\n\n\n<li>\u56e2\u961f\u4f1a\u4ec0\u4e48\uff1f<\/li>\n<\/ul>\n\n\n\n<p>\u628a\u8fd9\u4e9b\u60f3\u6e05\u695a\u4e86\uff0c\u7b54\u6848\u81ea\u7136\u5c31\u6709\u4e86\u3002\u6bd5\u7adf\uff0c<strong>\u80fd\u89e3\u51b3\u95ee\u9898\u7684\u6280\u672f\uff0c\u624d\u662f\u597d\u6280\u672f\u3002<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6570\u636e\u5904\u7406\u6846\u67b6\u6709\u54ea\u4e9b\uff1f \u9009\u6846\u67b6\u524d\uff0c\u5f97\u5148\u660e\u767d\u5b83\u4eec\u6700\u6839\u672c\u7684\u8bbe\u8ba1\u601d\u8def\uff1a \u4e0d\u540c\u7684\u5904\u7406\u6a21\u5f0f\uff0c\u51b3\u5b9a\u4e86\u5b83\u4eec\u80fd\u5e72\u4ec0\u4e48\u3001\u4e0d\u80fd\u5e72\u4ec0\u4e48 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":632,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-630","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-9"],"_links":{"self":[{"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/posts\/630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/comments?post=630"}],"version-history":[{"count":1,"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/posts\/630\/revisions"}],"predecessor-version":[{"id":633,"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/posts\/630\/revisions\/633"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/media\/632"}],"wp:attachment":[{"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/media?parent=630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/categories?post=630"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/tags?post=630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}