{"id":1896,"date":"2017-08-30T11:01:30","date_gmt":"2017-08-30T03:01:30","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=1896"},"modified":"2017-08-30T11:01:30","modified_gmt":"2017-08-30T03:01:30","slug":"apache-kafka%e7%9a%84%e6%b5%81%e5%bc%8fsql%e5%bc%95%e6%93%8eksql%e7%ae%80%e4%bb%8b","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=1896","title":{"rendered":"Apache Kafka\u7684\u6d41\u5f0fSQL\u5f15\u64ceKSQL\u7b80\u4ecb"},"content":{"rendered":"<p>\n\t<a href=\"https:\/\/github.com\/confluentinc\/ksql\" name=\"ksql\" target=\"_blank\" title=\"ksql\">KSQL<\/a>\u662f<a href=\"http:\/\/kafka.apache.org\/\" name=\"kafka\" target=\"_blank\" title=\"kafka\">Apache Kafka<\/a>\u7684\u5f00\u6e90\u6d41SQL\u5f15\u64ce\u3002\u5b83\u4e3aKafka\u7684\u6d41\u5904\u7406\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u800c\u5b8c\u5168\u4ea4\u4e92\u7684SQL\u754c\u9762; \u4e0d\u9700\u8981\u7528\u7f16\u7a0b\u8bed\u8a00\uff08\u5982Java\u6216Python\uff09\u7f16\u5199\u4ee3\u7801\u3002KSQL\u662f\u5f00\u6e90\uff08Apache 2.0\u8bb8\u53ef\uff09\uff0c\u5206\u5e03\u5f0f\uff0c\u53ef\u6269\u5c55\uff0c\u53ef\u9760\u548c\u5b9e\u65f6\u7684\u3002\u5b83\u652f\u6301\u5e7f\u6cdb\u7684\u5f3a\u5927\u7684\u6d41\u5904\u7406\u64cd\u4f5c\uff0c\u5305\u62ec\u805a\u5408\uff0c\u8fde\u63a5\uff0c\u7a97\u53e3\u5316\uff0c\u4f1a\u8bdd\u5316\u7b49\u7b49\u3002\n<\/p>\n<p>\n\tKafka\u7684\u4f5c\u8005Neha Narkhede\u5728Confluent\u4e0a\u53d1\u8868\u4e86\u4e00\u7bc7<a href=\"https:\/\/www.confluent.io\/blog\/ksql-open-source-streaming-sql-for-apache-kafka\/\" name=\"Introducing KSQL: Open Source Streaming SQL for Apache Kafka\" target=\"_blank\" title=\"Introducing KSQL: Open Source Streaming SQL for Apache Kafka\">\u535a\u6587<\/a>\uff0c\u4ecb\u7ecd\u4e86Kafka\u65b0\u5f15\u5165\u7684KSQL\u5f15\u64ce&mdash;&mdash;\u4e00\u4e2a\u57fa\u4e8e\u6d41\u7684SQL\u3002\u63a8\u51faKSQL\u662f\u4e3a\u4e86\u964d\u4f4e\u6d41\u5f0f\u5904\u7406\u7684\u95e8\u69db\uff0c\u4e3a\u5904\u7406Kafka\u6570\u636e\u63d0\u4f9b\u7b80\u5355\u800c\u5b8c\u6574\u7684\u53ef\u4ea4\u4e92\u5f0fSQL\u63a5\u53e3\u3002\n<\/p>\n<h2>\n\tKSQL\u4e0e\u4f20\u7edfSQL\u7684\u533a\u522b<br \/>\n<\/h2>\n<p>\n\tKSQL\u4e0e\u5173\u7cfb\u578b\u6570\u636e\u5e93\u4e2d\u7684SQL\u8fd8\u662f\u6709\u5f88\u5927\u4e0d\u540c\u7684\u3002\u4f20\u7edf\u7684SQL\u90fd\u662f\u5373\u65f6\u7684\u4e00\u6b21\u6027\u64cd\u4f5c\uff0c\u4e0d\u7ba1\u662f\u67e5\u8be2\u8fd8\u662f\u66f4\u65b0\u90fd\u662f\u5728\u5f53\u524d\u7684\u6570\u636e\u96c6\u4e0a\u8fdb\u884c\u3002\u800cKSQL\u5219\u4e0d\u540c\uff0cKSQL\u7684\u67e5\u8be2\u548c\u66f4\u65b0\u662f\u6301\u7eed\u8fdb\u884c\u7684\uff0c\u800c\u4e14\u6570\u636e\u96c6\u53ef\u4ee5\u6e90\u6e90\u4e0d\u65ad\u5730\u589e\u52a0\u3002KSQL\u6240\u505a\u7684\u5176\u5b9e\u662f\u8f6c\u6362\u64cd\u4f5c\uff0c\u4e5f\u5c31\u662f\u6d41\u5f0f\u5904\u7406\u3002\n<\/p>\n<h2>\n\tKSQL\u7684\u9002\u7528\u573a\u666f<br \/>\n<\/h2>\n<ul>\n<li>\n\t\t\u5b9e\u65f6\u76d1\u63a7\uff1a\u4e00\u65b9\u9762\uff0c\u53ef\u4ee5\u901a\u8fc7KSQL\u81ea\u5b9a\u4e49\u4e1a\u52a1\u5c42\u9762\u7684\u5ea6\u91cf\u6307\u6807\uff0c\u8fd9\u4e9b\u6307\u6807\u53ef\u4ee5\u5b9e\u65f6\u83b7\u5f97\u3002\u5e95\u5c42\u7684\u5ea6\u91cf\u6307\u6807\u65e0\u6cd5\u544a\u8bc9\u6211\u4eec\u5e94\u7528\u7a0b\u5e8f\u7684\u5b9e\u9645\u884c\u4e3a\uff0c\u6240\u4ee5\u57fa\u4e8e\u5e94\u7528\u7a0b\u5e8f\u751f\u6210\u7684\u539f\u59cb\u4e8b\u4ef6\u6765\u81ea\u5b9a\u4e49\u5ea6\u91cf\u6307\u6807\u53ef\u4ee5\u66f4\u597d\u5730\u4e86\u89e3\u5e94\u7528\u7a0b\u5e8f\u7684\u8fd0\u884c\u72b6\u51b5\u3002\u53e6\u4e00\u65b9\u9762\uff0c\u53ef\u4ee5\u901a\u8fc7KSQL\u4e3a\u5e94\u7528\u7a0b\u5e8f\u5b9a\u4e49\u67d0\u79cd\u6807\u51c6\uff0c\u7528\u4e8e\u68c0\u67e5\u5e94\u7528\u7a0b\u5e8f\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u7684\u884c\u4e3a\u662f\u5426\u8fbe\u5230\u9884\u671f\u3002\n\t<\/li>\n<li>\n\t\t\u5b89\u5168\u68c0\u6d4b\uff1aKSQL\u628a\u4e8b\u4ef6\u6d41\u8f6c\u6362\u6210\u5305\u542b\u6570\u503c\u7684\u65f6\u95f4\u5e8f\u5217\u6570\u636e\uff0c\u7136\u540e\u901a\u8fc7\u53ef\u89c6\u5316\u5de5\u5177\u628a\u8fd9\u4e9b\u6570\u636e\u5c55\u793a\u5728UI\u4e0a\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u68c0\u6d4b\u5230\u5f88\u591a\u5a01\u80c1\u5b89\u5168\u7684\u884c\u4e3a\uff0c\u6bd4\u5982\u6b3a\u8bc8\u3001\u5165\u4fb5\uff0c\u7b49\u7b49\u3002KSQL\u4e3a\u6b64\u63d0\u4f9b\u4e86\u4e00\u79cd\u5b9e\u65f6\u3001\u7b80\u5355\u800c\u5b8c\u5907\u7684\u65b9\u6848\u3002\n\t<\/li>\n<li>\n\t\t\u5728\u7ebf\u6570\u636e\u96c6\u6210\uff1a\u5927\u90e8\u5206\u7684\u6570\u636e\u5904\u7406\u90fd\u4f1a\u7ecf\u5386ETL\uff08Extract&mdash;&mdash;Transform&mdash;&mdash;Load\uff09\u8fd9\u6837\u7684\u8fc7\u7a0b\uff0c\u800c\u8fd9\u6837\u7684\u7cfb\u7edf\u901a\u5e38\u90fd\u662f\u901a\u8fc7\u5b9a\u65f6\u7684\u6279\u6b21\u4f5c\u4e1a\u6765\u5b8c\u6210\u6570\u636e\u5904\u7406\u7684\uff0c\u4f46\u6279\u6b21\u4f5c\u4e1a\u6240\u5e26\u6765\u7684\u5ef6\u65f6\u5728\u5f88\u591a\u65f6\u5019\u662f\u65e0\u6cd5\u88ab\u63a5\u53d7\u7684\u3002\u800c\u901a\u8fc7\u4f7f\u7528KSQL\u548cKafka\u8fde\u63a5\u5668\uff0c\u53ef\u4ee5\u5c06\u6279\u6b21\u6570\u636e\u96c6\u6210\u8f6c\u53d8\u6210\u5728\u7ebf\u6570\u636e\u96c6\u6210\u3002\u6bd4\u5982\uff0c\u901a\u8fc7\u6d41\u4e0e\u8868\u7684\u8fde\u63a5\uff0c\u53ef\u4ee5\u7528\u5b58\u50a8\u5728\u6570\u636e\u8868\u91cc\u7684\u5143\u6570\u636e\u6765\u586b\u5145\u4e8b\u4ef6\u6d41\u91cc\u7684\u6570\u636e\uff0c\u6216\u8005\u5728\u5c06\u6570\u636e\u4f20\u8f93\u5230\u5176\u4ed6\u7cfb\u7edf\u4e4b\u524d\u8fc7\u6ee4\u6389\u6570\u636e\u91cc\u7684\u654f\u611f\u4fe1\u606f\u3002\n\t<\/li>\n<li>\n\t\t\u5e94\u7528\u5f00\u53d1\uff1a\u5bf9\u4e8e\u590d\u6742\u7684\u5e94\u7528\u6765\u8bf4\uff0c\u4f7f\u7528Kafka\u7684\u539f\u751fStreams API\u6216\u8bb8\u4f1a\u66f4\u5408\u9002\u3002\u4e0d\u8fc7\uff0c\u5bf9\u4e8e\u7b80\u5355\u7684\u5e94\u7528\u6765\u8bf4\uff0c\u6216\u8005\u5bf9\u4e8e\u4e0d\u559c\u6b22Java\u7f16\u7a0b\u7684\u4eba\u6765\u8bf4\uff0cKSQL\u4f1a\u662f\u66f4\u597d\u7684\u9009\u62e9\u3002\n\t<\/li>\n<\/ul>\n<p>\n\t\u76ee\u524dKSQL\u5df2\u6839\u636eApache\u8bb8\u53ef\u8bc12.0\u7248\u6388\u6743\u8fdb\u884c\u4e86\u5f00\u6e90\uff0c\u4f46\u662f\u5f53\u524d\u8fd8\u662fbeta\u7248\u672c\u3002\u76f8\u5173\u6e90\u7801\u5df2\u4e0a\u4f20\u53eagithub\uff1a<a href=\"https:\/\/github.com\/confluentinc\/ksql\" name=\"ksql\" target=\"_blank\" title=\"ksql\">https:\/\/github.com\/confluentinc\/ksql<\/a>\n<\/p>\n<h2>\n\t\u53c2\u8003\u8d44\u6599<br \/>\n<\/h2>\n<ul>\n<li>\n\t\t<a href=\"https:\/\/www.confluent.io\/blog\/ksql-open-source-streaming-sql-for-apache-kafka\/\" name=\"Introducing KSQL: Open Source Streaming SQL for Apache Kafka\" target=\"_blank\" title=\"Introducing KSQL: Open Source Streaming SQL for Apache Kafka\">Introducing KSQL: Open Source Streaming SQL for Apache Kafka<\/a>\n\t<\/li>\n<\/ul>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=1896\">Apache Kafka\u7684\u6d41\u5f0fSQL\u5f15\u64ceKSQL\u7b80\u4ecb<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>KSQL\u662fApache Kafka\u7684\u5f00\u6e90\u6d41SQL\u5f15\u64ce\u3002\u5b83\u4e3aKafka\u7684\u6d41\u5904\u7406\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u800c\u5b8c\u5168\u4ea4\u4e92\u7684SQL\u754c [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[789,1473],"class_list":["post-1896","post","type-post","status-publish","format-standard","hentry","category-sql","tag-kafka","tag-ksql"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1896","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1896"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1896\/revisions"}],"predecessor-version":[{"id":1897,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1896\/revisions\/1897"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1896"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}