{"id":4253,"date":"2019-01-14T10:24:37","date_gmt":"2019-01-14T02:24:37","guid":{"rendered":"https:\/\/ixyzero.com\/blog\/?p=4253"},"modified":"2019-01-14T10:24:37","modified_gmt":"2019-01-14T02:24:37","slug":"flink%e5%ad%a6%e4%b9%a0%e8%b5%84%e6%96%99%e6%95%b4%e7%90%86","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/4253.html","title":{"rendered":"Flink\u5b66\u4e60\u8d44\u6599\u6574\u7406"},"content":{"rendered":"<p>=Start=<\/p>\n<h4 id=\"id-\u6a21\u677f-\u7f18\u7531\uff1a\">\u7f18\u7531\uff1a<\/h4>\n<p>\u6574\u7406\u4e00\u4e9b\u770b\u5230\u7684\u89c9\u5f97\u4e0d\u9519\u7684\u548cFlink\u76f8\u5173\u7684\u8d44\u6599\uff0c\u65b9\u4fbf\u4ee5\u540e\u8981\u7528\u7684\u65f6\u5019\u53c2\u8003\u3002<\/p>\n<h4 id=\"id-\u6a21\u677f-\u6b63\u6587\uff1a\">\u6b63\u6587\uff1a<\/h4>\n<h5 id=\"id-\u6a21\u677f-\u53c2\u8003\u89e3\u7b54\uff1a\">\u53c2\u8003\u89e3\u7b54\uff1a<\/h5>\n<h6><strong>Flink\u7b80\u4ecb<\/strong><\/h6>\n<p>Flink\u6838\u5fc3\u662f\u4e00\u4e2a\u6d41\u5f0f\u7684\u6570\u636e\u6d41\u6267\u884c\u5f15\u64ce\uff0c\u5176\u9488\u5bf9\u6570\u636e\u6d41\u7684\u5206\u5e03\u5f0f\u8ba1\u7b97\u63d0\u4f9b\u4e86\u6570\u636e\u5206\u5e03\u3001\u6570\u636e\u901a\u4fe1\u4ee5\u53ca\u5bb9\u9519\u673a\u5236\u7b49\u529f\u80fd\u3002\u57fa\u4e8e\u6d41\u6267\u884c\u5f15\u64ce\uff0cFlink\u63d0\u4f9b\u4e86\u8bf8\u591a\u66f4\u9ad8\u62bd\u8c61\u5c42\u7684API\u4ee5\u4fbf\u7528\u6237\u7f16\u5199\u5206\u5e03\u5f0f\u4efb\u52a1\uff1a<\/p>\n<ol class=\"list-paddingleft-2\">\n<li>DataSet API\uff0c\u5bf9\u9759\u6001\u6570\u636e\u8fdb\u884c\u6279\u5904\u7406\u64cd\u4f5c\uff0c\u5c06\u9759\u6001\u6570\u636e\u62bd\u8c61\u6210\u5206\u5e03\u5f0f\u7684\u6570\u636e\u96c6\uff0c\u7528\u6237\u53ef\u4ee5\u65b9\u4fbf\u5730\u4f7f\u7528Flink\u63d0\u4f9b\u7684\u5404\u79cd\u64cd\u4f5c\u7b26\u5bf9\u5206\u5e03\u5f0f\u6570\u636e\u96c6\u8fdb\u884c\u5904\u7406\uff0c\u652f\u6301Java\u3001Scala\u548cPython\u3002<\/li>\n<li>DataStream API\uff0c\u5bf9\u6570\u636e\u6d41\u8fdb\u884c\u6d41\u5904\u7406\u64cd\u4f5c\uff0c\u5c06\u6d41\u5f0f\u7684\u6570\u636e\u62bd\u8c61\u6210\u5206\u5e03\u5f0f\u7684\u6570\u636e\u6d41\uff0c\u7528\u6237\u53ef\u4ee5\u65b9\u4fbf\u5730\u5bf9\u5206\u5e03\u5f0f\u6570\u636e\u6d41\u8fdb\u884c\u5404\u79cd\u64cd\u4f5c\uff0c\u652f\u6301Java\u548cScala\u3002<\/li>\n<li>Table API\uff0c\u5bf9\u7ed3\u6784\u5316\u6570\u636e\u8fdb\u884c\u67e5\u8be2\u64cd\u4f5c\uff0c\u5c06\u7ed3\u6784\u5316\u6570\u636e\u62bd\u8c61\u6210\u5173\u7cfb\u8868\uff0c\u5e76\u901a\u8fc7\u7c7bSQL\u7684DSL\u5bf9\u5173\u7cfb\u8868\u8fdb\u884c\u5404\u79cd\u67e5\u8be2\u64cd\u4f5c\uff0c\u652f\u6301Java\u548cScala\u3002<\/li>\n<\/ol>\n<h6><strong>Flink\u4e2d\u7684\u4e00\u4e9b\u57fa\u672c\u6982\u5ff5<\/strong><\/h6>\n<p>Flink\u7a0b\u5e8f\u7684\u57fa\u672c\u6784\u5efa\u5757\u662f<code>streams<\/code>\u548c<code>transformations<\/code>\uff08\u6ce8\u610f\uff0cDataSet\u5728\u5185\u90e8\u4e5f\u662f\u4e00\u4e2astream\uff09\u3002\u4e00\u4e2a<code>stream<\/code>\u53ef\u4ee5\u770b\u6210\u4e00\u4e2a\u4e2d\u95f4\u7ed3\u679c\uff0c\u800c\u4e00\u4e2a<code>transformations<\/code>\u662f\u4ee5\u4e00\u4e2a\u6216\u591a\u4e2astream\u4f5c\u4e3a\u8f93\u5165\u7684\u67d0\u79cdoperation\uff0c\u8be5operation\u5229\u7528\u8fd9\u4e9bstream\u8fdb\u884c\u8ba1\u7b97\u4ece\u800c\u4ea7\u751f\u4e00\u4e2a\u6216\u591a\u4e2a<code>result stream<\/code>\u3002<\/p>\n<p>\u5728\u8fd0\u884c\u65f6\uff0cFlink\u4e0a\u8fd0\u884c\u7684\u7a0b\u5e8f\u4f1a\u88ab\u6620\u5c04\u6210<code>streaming dataflows<\/code>\uff0c\u5b83\u5305\u542b\u4e86<code>streams<\/code>\u548c<code>transformations operators<\/code>\u3002\u6bcf\u4e00\u4e2adataflow\u4ee5\u4e00\u4e2a\u6216\u591a\u4e2a<strong>sources<\/strong>\u5f00\u59cb\u4ee5\u4e00\u4e2a\u6216\u591a\u4e2a<strong>sinks<\/strong>\u7ed3\u675f\u3002dataflow\u7c7b\u4f3c\u4e8e\u4efb\u610f\u7684\u6709\u5411\u65e0\u73af\u56fe\uff08DAG\uff09\uff0c\u5f53\u7136\u7279\u5b9a\u5f62\u5f0f\u7684<strong><em>\u73af<\/em><\/strong>\u53ef\u4ee5\u901a\u8fc7<strong><em>iteration<\/em><\/strong>\u6784\u5efa\u3002\u5728\u5927\u90e8\u5206\u60c5\u51b5\u4e0b\uff0c\u7a0b\u5e8f\u4e2d\u7684<code>transformations<\/code>\u8ddfdataflow\u4e2d\u7684<code>operator<\/code>\u662f\u4e00\u4e00\u5bf9\u5e94\u7684\u5173\u7cfb\u3002\u4f46\u6709\u65f6\u5019\uff0c\u4e00\u4e2a<code>transformation<\/code>\u53ef\u80fd\u5bf9\u5e94\u591a\u4e2a<code>operator<\/code>\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4254\" src=\"https:\/\/ixyzero.com\/blog\/wp-content\/uploads\/2019\/01\/flink_program_dataflow.png\" alt=\"\" width=\"1180\" height=\"930\" srcset=\"https:\/\/ixyzero.com\/wp-content\/uploads\/2019\/01\/flink_program_dataflow.png 1180w, https:\/\/ixyzero.com\/wp-content\/uploads\/2019\/01\/flink_program_dataflow-300x236.png 300w, https:\/\/ixyzero.com\/wp-content\/uploads\/2019\/01\/flink_program_dataflow-768x605.png 768w, https:\/\/ixyzero.com\/wp-content\/uploads\/2019\/01\/flink_program_dataflow-1024x807.png 1024w\" sizes=\"auto, (max-width: 1180px) 100vw, 1180px\" \/><\/p>\n<h6><strong>\u7edf\u4e00\u7684\u6279\u5904\u7406\u4e0e\u6d41\u5904\u7406\u7cfb\u7edf<\/strong><\/h6>\n<p><span style=\"color: #ff0000;\">\u5728\u5927\u6570\u636e\u5904\u7406\u9886\u57df\uff0c\u6279\u5904\u7406\u4efb\u52a1\u4e0e\u6d41\u5904\u7406\u4efb\u52a1\u4e00\u822c\u88ab\u8ba4\u4e3a\u662f\u4e24\u79cd\u4e0d\u540c\u7684\u4efb\u52a1\uff0c\u4e00\u4e2a\u5927\u6570\u636e\u9879\u76ee\u4e00\u822c\u4f1a\u88ab\u8bbe\u8ba1\u4e3a\u53ea\u80fd\u5904\u7406\u5176\u4e2d\u4e00\u79cd\u4efb\u52a1<\/span>\uff0c\u4f8b\u5982Apache Storm\u3001Apache Smaza\u53ea\u652f\u6301\u6d41\u5904\u7406\u4efb\u52a1\uff0c\u800cAapche MapReduce\u3001Apache Tez\u3001Apache Spark\u53ea\u652f\u6301\u6279\u5904\u7406\u4efb\u52a1\u3002Spark Streaming\u662fApache Spark\u4e4b\u4e0a\u652f\u6301\u6d41\u5904\u7406\u4efb\u52a1\u7684\u5b50\u7cfb\u7edf\uff0c\u770b\u4f3c\u4e00\u4e2a\u7279\u4f8b\uff0c\u5b9e\u5219\u4e0d\u7136\u2014\u2014Spark Streaming\u91c7\u7528\u4e86\u4e00\u79cdmicro-batch\u7684\u67b6\u6784\uff0c\u5373\u628a\u8f93\u5165\u7684\u6570\u636e\u6d41\u5207\u5206\u6210\u7ec6\u7c92\u5ea6\u7684batch\uff0c\u5e76\u4e3a\u6bcf\u4e00\u4e2abatch\u6570\u636e\u63d0\u4ea4\u4e00\u4e2a\u6279\u5904\u7406\u7684Spark\u4efb\u52a1\uff0c\u6240\u4ee5Spark Streaming\u672c\u8d28\u4e0a\u8fd8\u662f\u57fa\u4e8eSpark\u6279\u5904\u7406\u7cfb\u7edf\u5bf9\u6d41\u5f0f\u6570\u636e\u8fdb\u884c\u5904\u7406\uff0c\u548cApache Storm\u3001Apache Smaza\u7b49\u5b8c\u5168\u6d41\u5f0f\u7684\u6570\u636e\u5904\u7406\u65b9\u5f0f\u5b8c\u5168\u4e0d\u540c\u3002<span style=\"color: #ff0000;\">\u901a\u8fc7\u5176\u7075\u6d3b\u7684\u6267\u884c\u5f15\u64ce\uff0cFlink\u80fd\u591f\u540c\u65f6\u652f\u6301\u6279\u5904\u7406\u4efb\u52a1\u4e0e\u6d41\u5904\u7406\u4efb\u52a1\u3002<\/span><\/p>\n<p>\u5728\u6267\u884c\u5f15\u64ce\u8fd9\u4e00\u5c42\uff0c\u6d41\u5904\u7406\u7cfb\u7edf\u4e0e\u6279\u5904\u7406\u7cfb\u7edf\u6700\u5927\u4e0d\u540c\u5728\u4e8e\u8282\u70b9\u95f4\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\u3002\u5bf9\u4e8e\u4e00\u4e2a\u6d41\u5904\u7406\u7cfb\u7edf\uff0c\u5176\u8282\u70b9\u95f4\u6570\u636e\u4f20\u8f93\u7684\u6807\u51c6\u6a21\u578b\u662f\uff1a\u5f53\u4e00\u6761\u6570\u636e\u88ab\u5904\u7406\u5b8c\u6210\u540e\uff0c\u5e8f\u5217\u5316\u5230\u7f13\u5b58\u4e2d\uff0c\u7136\u540e\u7acb\u523b\u901a\u8fc7\u7f51\u7edc\u4f20\u8f93\u5230\u4e0b\u4e00\u4e2a\u8282\u70b9\uff0c\u7531\u4e0b\u4e00\u4e2a\u8282\u70b9\u7ee7\u7eed\u5904\u7406\u3002\u800c\u5bf9\u4e8e\u4e00\u4e2a\u6279\u5904\u7406\u7cfb\u7edf\uff0c\u5176\u8282\u70b9\u95f4\u6570\u636e\u4f20\u8f93\u7684\u6807\u51c6\u6a21\u578b\u662f\uff1a\u5f53\u4e00\u6761\u6570\u636e\u88ab\u5904\u7406\u5b8c\u6210\u540e\uff0c\u5e8f\u5217\u5316\u5230\u7f13\u5b58\u4e2d\uff0c\u5e76\u4e0d\u4f1a\u7acb\u523b\u901a\u8fc7\u7f51\u7edc\u4f20\u8f93\u5230\u4e0b\u4e00\u4e2a\u8282\u70b9\uff0c\u5f53\u7f13\u5b58\u5199\u6ee1\uff0c\u5c31\u6301\u4e45\u5316\u5230\u672c\u5730\u786c\u76d8\u4e0a\uff0c\u5f53\u6240\u6709\u6570\u636e\u90fd\u88ab\u5904\u7406\u5b8c\u6210\u540e\uff0c\u624d\u5f00\u59cb\u5c06\u5904\u7406\u540e\u7684\u6570\u636e\u901a\u8fc7\u7f51\u7edc\u4f20\u8f93\u5230\u4e0b\u4e00\u4e2a\u8282\u70b9\u3002\u8fd9\u4e24\u79cd\u6570\u636e\u4f20\u8f93\u6a21\u5f0f\u662f\u4e24\u4e2a\u6781\u7aef\uff0c\u5bf9\u5e94\u7684\u662f\u6d41\u5904\u7406\u7cfb\u7edf\u5bf9\u4f4e\u5ef6\u8fdf\u7684\u8981\u6c42\u548c\u6279\u5904\u7406\u7cfb\u7edf\u5bf9\u9ad8\u541e\u5410\u91cf\u7684\u8981\u6c42\u3002<span style=\"color: #ff0000;\">Flink\u7684\u6267\u884c\u5f15\u64ce\u91c7\u7528\u4e86\u4e00\u79cd\u5341\u5206\u7075\u6d3b\u7684\u65b9\u5f0f\uff0c\u540c\u65f6\u652f\u6301\u4e86\u8fd9\u4e24\u79cd\u6570\u636e\u4f20\u8f93\u6a21\u578b\u3002<strong>Flink\u4ee5\u56fa\u5b9a\u7684\u7f13\u5b58\u5757\u4e3a\u5355\u4f4d\u8fdb\u884c\u7f51\u7edc\u6570\u636e\u4f20\u8f93\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u7f13\u5b58\u5757\u8d85\u65f6\u503c\u6307\u5b9a\u7f13\u5b58\u5757\u7684\u4f20\u8f93\u65f6\u673a\u3002<\/strong>\u5982\u679c\u7f13\u5b58\u5757\u7684\u8d85\u65f6\u503c\u4e3a0\uff0c\u5219Flink\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\u7c7b\u4f3c\u4e0a\u6587\u6240\u63d0\u5230\u6d41\u5904\u7406\u7cfb\u7edf\u7684\u6807\u51c6\u6a21\u578b\uff0c\u6b64\u65f6\u7cfb\u7edf\u53ef\u4ee5\u83b7\u5f97\u6700\u4f4e\u7684\u5904\u7406\u5ef6\u8fdf\u3002\u5982\u679c\u7f13\u5b58\u5757\u7684\u8d85\u65f6\u503c\u4e3a\u65e0\u9650\u5927\uff0c\u5219Flink\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\u7c7b\u4f3c\u4e0a\u6587\u6240\u63d0\u5230\u6279\u5904\u7406\u7cfb\u7edf\u7684\u6807\u51c6\u6a21\u578b\uff0c\u6b64\u65f6\u7cfb\u7edf\u53ef\u4ee5\u83b7\u5f97\u6700\u9ad8\u7684\u541e\u5410\u91cf\u3002<\/span>\u540c\u65f6\u7f13\u5b58\u5757\u7684\u8d85\u65f6\u503c\u4e5f\u53ef\u4ee5\u8bbe\u7f6e\u4e3a0\u5230\u65e0\u9650\u5927\u4e4b\u95f4\u7684\u4efb\u610f\u503c\u3002\u7f13\u5b58\u5757\u7684\u8d85\u65f6\u9608\u503c\u8d8a\u5c0f\uff0c\u5219Flink\u6d41\u5904\u7406\u6267\u884c\u5f15\u64ce\u7684\u6570\u636e\u5904\u7406\u5ef6\u8fdf\u8d8a\u4f4e\uff0c\u4f46\u541e\u5410\u91cf\u4e5f\u4f1a\u964d\u4f4e\uff0c\u53cd\u4e4b\u4ea6\u7136\u3002\u901a\u8fc7\u8c03\u6574\u7f13\u5b58\u5757\u7684\u8d85\u65f6\u9608\u503c\uff0c\u7528\u6237\u53ef\u6839\u636e\u9700\u6c42\u7075\u6d3b\u5730\u6743\u8861\u7cfb\u7edf\u5ef6\u8fdf\u548c\u541e\u5410\u91cf\u3002<\/p>\n<p>\u5728\u7edf\u4e00\u7684\u6d41\u5f0f\u6267\u884c\u5f15\u64ce\u57fa\u7840\u4e0a\uff0cFlink\u540c\u65f6\u652f\u6301\u4e86\u6d41\u8ba1\u7b97\u548c\u6279\u5904\u7406\uff0c\u5e76\u5bf9\u6027\u80fd\uff08\u5ef6\u8fdf\u3001\u541e\u5410\u91cf\u7b49\uff09\u6709\u6240\u4fdd\u969c\u3002\u76f8\u5bf9\u4e8e\u5176\u4ed6\u539f\u751f\u7684\u6d41\u5904\u7406\u4e0e\u6279\u5904\u7406\u7cfb\u7edf\uff0c\u5e76\u6ca1\u6709\u56e0\u4e3a\u7edf\u4e00\u6267\u884c\u5f15\u64ce\u800c\u53d7\u5230\u5f71\u54cd\u4ece\u800c\u5927\u5e45\u5ea6\u51cf\u8f7b\u4e86\u7528\u6237\u5b89\u88c5\u3001\u90e8\u7f72\u3001\u76d1\u63a7\u3001\u7ef4\u62a4\u7b49\u6210\u672c\u3002<\/p>\n<h6><strong>Flink\u6d41\u5904\u7406\u7684\u65f6\u95f4\u7a97\u53e3<\/strong><\/h6>\n<p>\u5bf9\u4e8e\u6d41\u5904\u7406\u7cfb\u7edf\u6765\u8bf4\uff0c\u6d41\u5165\u7684\u6d88\u606f\u4e0d\u5b58\u5728\u4e0a\u9650\uff0c\u6240\u4ee5\u5bf9\u4e8e\u805a\u5408\u6216\u662f\u8fde\u63a5\u7b49\u64cd\u4f5c\uff0c\u6d41\u5904\u7406\u7cfb\u7edf\u9700\u8981\u5bf9\u6d41\u5165\u7684\u6d88\u606f\u8fdb\u884c\u5206\u6bb5\uff0c\u7136\u540e\u57fa\u4e8e\u6bcf\u4e00\u6bb5\u6570\u636e\u8fdb\u884c\u805a\u5408\u6216\u662f\u8fde\u63a5\u3002\u6d88\u606f\u7684\u5206\u6bb5\u5373\u79f0\u4e3a\u7a97\u53e3\uff0c\u6d41\u5904\u7406\u7cfb\u7edf\u652f\u6301\u7684\u7a97\u53e3\u6709\u5f88\u591a\u7c7b\u578b\uff0c\u6700\u5e38\u89c1\u7684\u5c31\u662f\u65f6\u95f4\u7a97\u53e3\uff0c\u57fa\u4e8e\u65f6\u95f4\u95f4\u9694\u5bf9\u6d88\u606f\u8fdb\u884c\u5206\u6bb5\u5904\u7406\u3002\u672c\u8282\u4e3b\u8981\u4ecb\u7ecdFlink\u6d41\u5904\u7406\u7cfb\u7edf\u652f\u6301\u7684\u5404\u79cd\u65f6\u95f4\u7a97\u53e3\u3002<\/p>\n<p>\u5bf9\u4e8e\u76ee\u524d\u5927\u90e8\u5206\u6d41\u5904\u7406\u7cfb\u7edf\u6765\u8bf4\uff0c\u65f6\u95f4\u7a97\u53e3\u4e00\u822c\u662f\u6839\u636eTask\u6240\u5728\u8282\u70b9\u7684\u672c\u5730\u65f6\u949f\u8fdb\u884c\u5207\u5206\uff0c\u8fd9\u79cd\u65b9\u5f0f\u5b9e\u73b0\u8d77\u6765\u6bd4\u8f83\u5bb9\u6613\uff0c\u4e0d\u4f1a\u4ea7\u751f\u963b\u585e\u3002\u4f46\u662f\u53ef\u80fd\u65e0\u6cd5\u6ee1\u8db3\u67d0\u4e9b\u5e94\u7528\u9700\u6c42\uff0c\u6bd4\u5982\uff1a<\/p>\n<p>\u6d88\u606f\u672c\u8eab\u5e26\u6709\u65f6\u95f4\u6233\uff0c\u7528\u6237\u5e0c\u671b\u6309\u7167\u6d88\u606f\u672c\u8eab\u7684\u65f6\u95f4\u7279\u6027\u8fdb\u884c\u5206\u6bb5\u5904\u7406\u3002<\/p>\n<p>\u7531\u4e8e\u4e0d\u540c\u8282\u70b9\u7684\u65f6\u949f\u53ef\u80fd\u4e0d\u540c\uff0c\u4ee5\u53ca\u6d88\u606f\u5728\u6d41\u7ecf\u5404\u4e2a\u8282\u70b9\u7684\u5ef6\u8fdf\u4e0d\u540c\uff0c\u5728\u67d0\u4e2a\u8282\u70b9\u5c5e\u4e8e\u540c\u4e00\u4e2a\u65f6\u95f4\u7a97\u53e3\u5904\u7406\u7684\u6d88\u606f\uff0c\u6d41\u5230\u4e0b\u4e00\u4e2a\u8282\u70b9\u65f6\u53ef\u80fd\u88ab\u5207\u5206\u5230\u4e0d\u540c\u7684\u65f6\u95f4\u7a97\u53e3\u4e2d\uff0c\u4ece\u800c\u4ea7\u751f\u4e0d\u7b26\u5408\u9884\u671f\u7684\u7ed3\u679c\u3002<\/p>\n<p>Flink\u652f\u63013\u79cd\u7c7b\u578b\u7684\u65f6\u95f4\u7a97\u53e3\uff0c\u5206\u522b\u9002\u7528\u4e8e\u7528\u6237\u5bf9\u4e8e\u65f6\u95f4\u7a97\u53e3\u4e0d\u540c\u7c7b\u578b\u7684\u8981\u6c42\uff1a<\/p>\n<ul>\n<li>Operator Time\u3002\u6839\u636eTask\u6240\u5728\u8282\u70b9\u7684\u672c\u5730\u65f6\u949f\u6765\u5207\u5206\u7684\u65f6\u95f4\u7a97\u53e3\u3002<\/li>\n<li>Event Time\u3002\u6d88\u606f\u81ea\u5e26\u65f6\u95f4\u6233\uff0c\u6839\u636e\u6d88\u606f\u7684\u65f6\u95f4\u6233\u8fdb\u884c\u5904\u7406\uff0c\u786e\u4fdd\u65f6\u95f4\u6233\u5728\u540c\u4e00\u4e2a\u65f6\u95f4\u7a97\u53e3\u7684\u6240\u6709\u6d88\u606f\u4e00\u5b9a\u4f1a\u88ab\u6b63\u786e\u5904\u7406\u3002\u7531\u4e8e\u6d88\u606f\u53ef\u80fd\u4e71\u5e8f\u6d41\u5165Task\uff0c\u6240\u4ee5Task\u9700\u8981\u7f13\u5b58\u5f53\u524d\u65f6\u95f4\u7a97\u53e3\u6d88\u606f\u5904\u7406\u7684\u72b6\u6001\uff0c\u76f4\u5230\u786e\u8ba4\u5c5e\u4e8e\u8be5\u65f6\u95f4\u7a97\u53e3\u7684\u6240\u6709\u6d88\u606f\u90fd\u88ab\u5904\u7406\uff0c\u624d\u53ef\u4ee5\u91ca\u653e\uff0c\u5982\u679c\u4e71\u5e8f\u7684\u6d88\u606f\u5ef6\u8fdf\u5f88\u9ad8\u4f1a\u5f71\u54cd\u5206\u5e03\u5f0f\u7cfb\u7edf\u7684\u541e\u5410\u91cf\u548c\u5ef6\u8fdf\u3002<\/li>\n<li>Ingress Time\u3002\u6709\u65f6\u6d88\u606f\u672c\u8eab\u5e76\u4e0d\u5e26\u6709\u65f6\u95f4\u6233\u4fe1\u606f\uff0c\u4f46\u7528\u6237\u4f9d\u7136\u5e0c\u671b\u6309\u7167\u6d88\u606f\u800c\u4e0d\u662f\u8282\u70b9\u65f6\u949f\u5212\u5206\u65f6\u95f4\u7a97\u53e3\uff0c\u4f8b\u5982\u907f\u514d\u4e0a\u9762\u63d0\u5230\u7684\u7b2c\u4e8c\u4e2a\u95ee\u9898\uff0c\u6b64\u65f6\u53ef\u4ee5\u5728\u6d88\u606f\u6e90\u6d41\u5165Flink\u6d41\u5904\u7406\u7cfb\u7edf\u65f6\u81ea\u52a8\u751f\u6210\u589e\u91cf\u7684\u65f6\u95f4\u6233\u8d4b\u4e88\u6d88\u606f\uff0c\u4e4b\u540e\u5904\u7406\u7684\u6d41\u7a0b\u4e0eEvent Time\u76f8\u540c\u3002Ingress Time\u53ef\u4ee5\u770b\u6210\u662fEvent Time\u7684\u4e00\u4e2a\u7279\u4f8b\uff0c\u7531\u4e8e\u5176\u5728\u6d88\u606f\u6e90\u5904\u65f6\u95f4\u6233\u4e00\u5b9a\u662f\u6709\u5e8f\u7684\uff0c\u6240\u4ee5\u5728\u6d41\u5904\u7406\u7cfb\u7edf\u4e2d\uff0c\u76f8\u5bf9\u4e8eEvent Time\uff0c\u5176\u4e71\u5e8f\u7684\u6d88\u606f\u5ef6\u8fdf\u4e0d\u4f1a\u5f88\u9ad8\uff0c\u56e0\u6b64\u5bf9Flink\u5206\u5e03\u5f0f\u7cfb\u7edf\u7684\u541e\u5410\u91cf\u548c\u5ef6\u8fdf\u7684\u5f71\u54cd\u4e5f\u4f1a\u66f4\u5c0f\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h5 id=\"id-\u6a21\u677f-\u53c2\u8003\u94fe\u63a5\uff1a\">\u53c2\u8003\u94fe\u63a5\uff1a<\/h5>\n<ul>\n<li><a href=\"https:\/\/mp.weixin.qq.com\/s\/AmZJXTDPKgzq4U_QQeXe1Q\">Flink\u4e2d\u7684\u4e00\u4e9b\u6838\u5fc3\u6982\u5ff5<\/a><br \/>\n<a href=\"https:\/\/ci.apache.org\/projects\/flink\/flink-docs-release-1.0\/concepts\/concepts.html\">https:\/\/ci.apache.org\/projects\/flink\/flink-docs-release-1.0\/concepts\/concepts.html<\/a><\/li>\n<li><a href=\"https:\/\/mp.weixin.qq.com\/s\/g88kK3fVrOMT3GBbp1uiqg\">\u6df1\u5165\u7406\u89e3Apache Flink\u6838\u5fc3\u6280\u672f<\/a><\/li>\n<li><a href=\"https:\/\/ci.apache.org\/projects\/flink\/flink-docs-release-1.7\/examples\/\">Flink\u7684\u4e00\u4e9b\u6837\u4f8b<\/a><br \/>\n<a href=\"https:\/\/github.com\/apache\/flink\/tree\/master\/flink-examples\/flink-examples-streaming\/src\/main\/java\/org\/apache\/flink\/streaming\/examples\">https:\/\/github.com\/apache\/flink\/tree\/master\/flink-examples\/flink-examples-streaming\/src\/main\/java\/org\/apache\/flink\/streaming\/examples<\/a><\/li>\n<li><a href=\"https:\/\/mp.weixin.qq.com\/s\/zkAz8Qc9urjb886ekbdOUQ\">\u6c42\u6c42\u4f60\u5927\u8549\u522b\u5b66\u4e86\u4e4b Flink No.127<\/a><\/li>\n<li><a href=\"https:\/\/www.zhihu.com\/question\/306432813\">\u81ea\u4eceflink\u6210\u719f\u4e4b\u540e\uff0cspark\u662f\u5426\u6162\u6162\u6210\u4e3a\u9e21\u808b\uff1f<\/a><\/li>\n<\/ul>\n<p>=END=<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=Start= \u7f18\u7531\uff1a \u6574\u7406\u4e00\u4e9b\u770b\u5230\u7684\u89c9\u5f97\u4e0d\u9519\u7684\u548cFlink\u76f8\u5173\u7684\u8d44\u6599\uff0c\u65b9\u4fbf\u4ee5\u540e\u8981\u7528\u7684\u65f6\u5019\u53c2\u8003\u3002 \u6b63\u6587\uff1a \u53c2\u8003 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,7],"tags":[1290,1292,1291],"class_list":["post-4253","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-programing","tag-flink","tag-1292","tag-1291"],"views":11320,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/4253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=4253"}],"version-history":[{"count":1,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/4253\/revisions"}],"predecessor-version":[{"id":4255,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/4253\/revisions\/4255"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=4253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=4253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=4253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}