{"id":233,"date":"2018-03-21T16:28:41","date_gmt":"2018-03-21T16:28:41","guid":{"rendered":""},"modified":"2018-03-21T16:28:41","modified_gmt":"2018-03-21T16:28:41","slug":"","status":"publish","type":"post","link":"http:\/\/weizn.net\/?p=233","title":{"rendered":"[\u8f6c] Apache Hive-2.3.0 \u5feb\u901f\u642d\u5efa\u4e0e\u4f7f\u7528"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_17 counter-hierarchy\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" style=\"display: none;\"><i class=\"ez-toc-glyphicon ez-toc-icon-toggle\"><\/i><\/a><\/span><\/div>\n<nav><ul class=\"ez-toc-list ez-toc-list-level-1\"><li class=\"ez-toc-page-1 ez-toc-heading-level-1\"><a class=\"ez-toc-link ez-toc-heading-1\" href=\"http:\/\/weizn.net\/?p=233\/#i\" title=\"\n\tHive \u7b80\u4ecb \n\">\n\tHive \u7b80\u4ecb \n<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-1\"><a class=\"ez-toc-link ez-toc-heading-2\" href=\"http:\/\/weizn.net\/?p=233\/#i-2\" title=\"\n\t\u51c6\u5907\u5de5\u4f5c \n\">\n\t\u51c6\u5907\u5de5\u4f5c \n<\/a><ul class=\"ez-toc-list-level-2\"><li class=\"ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-3\" href=\"http:\/\/weizn.net\/?p=233\/#i-3\" title=\"\n\t\u73af\u5883 \n\">\n\t\u73af\u5883 \n<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-4\" href=\"http:\/\/weizn.net\/?p=233\/#i-4\" title=\"\n\t\u4f9d\u8d56\u73af\u5883 \n\">\n\t\u4f9d\u8d56\u73af\u5883 \n<\/a><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-1\"><a class=\"ez-toc-link ez-toc-heading-5\" href=\"http:\/\/weizn.net\/?p=233\/#i-5\" title=\"\n\t\u5b89\u88c5 \n\">\n\t\u5b89\u88c5 \n<\/a><ul class=\"ez-toc-list-level-2\"><li class=\"ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-6\" href=\"http:\/\/weizn.net\/?p=233\/#i-6\" title=\"\n\t\u4e0b\u8f7d\u89e3\u538b \n\">\n\t\u4e0b\u8f7d\u89e3\u538b \n<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-7\" href=\"http:\/\/weizn.net\/?p=233\/#i-7\" title=\"\n\t\u73af\u5883\u53d8\u91cf \n\">\n\t\u73af\u5883\u53d8\u91cf \n<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-8\" href=\"http:\/\/weizn.net\/?p=233\/#i-8\" title=\"\n\tHive \u914d\u7f6e Hadoop HDFS \n\">\n\tHive \u914d\u7f6e Hadoop HDFS \n<\/a><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-9\" href=\"http:\/\/weizn.net\/?p=233\/#i-9\" title=\"\n\t\u590d\u5236 hive-site.xml \n\">\n\t\u590d\u5236 hive-site.xml \n<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-10\" href=\"http:\/\/weizn.net\/?p=233\/#i-10\" title=\"\n\t\u65b0\u5efa hdfs \u76ee\u5f55 \n\">\n\t\u65b0\u5efa hdfs \u76ee\u5f55 \n<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-11\" href=\"http:\/\/weizn.net\/?p=233\/#i-11\" title=\"\n\t\u4fee\u6539 hive-site.xml \n\">\n\t\u4fee\u6539 hive-site.xml \n<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-12\" href=\"http:\/\/weizn.net\/?p=233\/#i-12\" title=\"\n\t\u521b\u5efa tmp \u6587\u4ef6 \n\">\n\t\u521b\u5efa tmp \u6587\u4ef6 \n<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-13\" href=\"http:\/\/weizn.net\/?p=233\/#i-13\" title=\"\n\t\u65b0\u5efa hive-env.sh \n\">\n\t\u65b0\u5efa hive-env.sh \n<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-14\" href=\"http:\/\/weizn.net\/?p=233\/#i-14\" title=\"\n\t\u4e0b\u8f7d mysql \u9a71\u52a8\u5305 \n\">\n\t\u4e0b\u8f7d mysql \u9a71\u52a8\u5305 \n<\/a><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-15\" href=\"http:\/\/weizn.net\/?p=233\/#i-15\" title=\"\n\t\u521d\u59cb\u5316 mysql \n\">\n\t\u521d\u59cb\u5316 mysql \n<\/a><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-16\" href=\"http:\/\/weizn.net\/?p=233\/#i-16\" title=\"\n\tMySQL\u6570\u636e\u5e93\u8fdb\u884c\u521d\u59cb\u5316 \n\">\n\tMySQL\u6570\u636e\u5e93\u8fdb\u884c\u521d\u59cb\u5316 \n<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-17\" href=\"http:\/\/weizn.net\/?p=233\/#i-17\" title=\"\n\t\u67e5\u770b mysql \u6570\u636e\u5e93 \n\">\n\t\u67e5\u770b mysql \u6570\u636e\u5e93 \n<\/a><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-18\" href=\"http:\/\/weizn.net\/?p=233\/#i-18\" title=\"\n\t\u542f\u52a8 Hive \n\">\n\t\u542f\u52a8 Hive \n<\/a><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-19\" href=\"http:\/\/weizn.net\/?p=233\/#i-19\" title=\"\n\t\u7b80\u5355\u6d4b\u8bd5 \n\">\n\t\u7b80\u5355\u6d4b\u8bd5 \n<\/a><\/li><\/ul><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-1\"><a class=\"ez-toc-link ez-toc-heading-20\" href=\"http:\/\/weizn.net\/?p=233\/#i-20\" title=\"\n\tContact \n\">\n\tContact \n<\/a><\/li><\/ul><\/nav><\/div>\n<h1 id=\"articleHeader0\" style=\"box-sizing:border-box;font-size:2.25em;margin:0px;font-family:-apple-system, &quot;font-weight:500;line-height:1.2;color:#333333;border-bottom:1px solid #EEEEEE;padding-bottom:10px;white-space:normal;background-color:#FFFFFF;\"><span class=\"ez-toc-section\" id=\"i\"><\/span>\n\tHive \u7b80\u4ecb<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\tHive \u662f\u4e00\u4e2a\u57fa\u4e8e hadoop \u7684\u5f00\u6e90\u6570\u636e\u4ed3\u5e93\u5de5\u5177\uff0c\u7528\u4e8e\u5b58\u50a8\u548c\u5904\u7406\u6d77\u91cf\u7ed3\u6784\u5316\u6570\u636e\u3002\u5b83\u628a\u6d77\u91cf\u6570\u636e\u5b58\u50a8\u4e8e hadoop \u6587\u4ef6\u7cfb\u7edf\uff0c\u800c\u4e0d\u662f\u6570\u636e\u5e93\uff0c\u4f46\u63d0\u4f9b\u4e86\u4e00\u5957\u7c7b\u6570\u636e\u5e93\u7684\u6570\u636e\u5b58\u50a8\u548c\u5904\u7406\u673a\u5236\uff0c\u5e76\u91c7\u7528 HQL \uff08\u7c7b SQL \uff09\u8bed\u8a00\u5bf9\u8fd9\u4e9b\u6570\u636e\u8fdb\u884c\u81ea\u52a8\u5316\u7ba1\u7406\u548c\u5904\u7406\u3002\u6211\u4eec\u53ef\u4ee5\u628a Hive \u4e2d\u6d77\u91cf\u7ed3\u6784\u5316\u6570\u636e\u770b\u6210\u4e00\u4e2a\u4e2a\u7684\u8868\uff0c\u800c\u5b9e\u9645\u4e0a\u8fd9\u4e9b\u6570\u636e\u662f\u5206\u5e03\u5f0f\u5b58\u50a8\u5728 HDFS \u4e2d\u7684\u3002 Hive \u7ecf\u8fc7\u5bf9\u8bed\u53e5\u8fdb\u884c\u89e3\u6790\u548c\u8f6c\u6362\uff0c\u6700\u7ec8\u751f\u6210\u4e00\u7cfb\u5217\u57fa\u4e8e hadoop \u7684 map\/reduce \u4efb\u52a1\uff0c\u901a\u8fc7\u6267\u884c\u8fd9\u4e9b\u4efb\u52a1\u5b8c\u6210\u6570\u636e\u5904\u7406\u3002\n<\/p>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\tHive \u8bde\u751f\u4e8e facebook \u7684\u65e5\u5fd7\u5206\u6790\u9700\u6c42\uff0c\u9762\u5bf9\u6d77\u91cf\u7684\u7ed3\u6784\u5316\u6570\u636e\uff0c Hive \u4ee5\u8f83\u4f4e\u7684\u6210\u672c\u5b8c\u6210\u4e86\u4ee5\u5f80\u9700\u8981\u5927\u89c4\u6a21\u6570\u636e\u5e93\u624d\u80fd\u5b8c\u6210\u7684\u4efb\u52a1\uff0c\u5e76\u4e14\u5b66\u4e60\u95e8\u69db\u76f8\u5bf9\u8f83\u4f4e\uff0c\u5e94\u7528\u5f00\u53d1\u7075\u6d3b\u800c\u9ad8\u6548\u3002\n<\/p>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\tHive \u81ea 2009.4.29 \u53d1\u5e03\u7b2c\u4e00\u4e2a\u5b98\u65b9\u7a33\u5b9a\u7248 0.3.0 \u81f3\u4eca\uff0c\u4e0d\u8fc7\u4e00\u5e74\u7684\u65f6\u95f4\uff0c\u6b63\u5728\u6162\u6162\u5b8c\u5584\uff0c\u7f51\u4e0a\u80fd\u627e\u5230\u7684\u76f8\u5173\u8d44\u6599\u76f8\u5f53\u5c11\uff0c\u5c24\u5176\u4e2d\u6587\u8d44\u6599\u66f4\u5c11\uff0c\u672c\u6587\u7ed3\u5408\u4e1a\u52a1\u5bf9 Hive \u7684\u5e94\u7528\u505a\u4e86\u4e00\u4e9b\u63a2\u7d22\uff0c\u5e76\u628a\u8fd9\u4e9b\u7ecf\u9a8c\u505a\u4e00\u4e2a\u603b\u7ed3\uff0c\u6240\u8c13\u524d\u8f66\u4e4b\u9274\uff0c\u5e0c\u671b\u8bfb\u8005\u80fd\u5c11\u8d70\u4e00\u4e9b\u5f2f\u8def\u3002\n<\/p>\n<h1 id=\"articleHeader1\" style=\"box-sizing:border-box;font-size:2.25em;margin:1.5em 0px 0px;font-family:-apple-system, &quot;font-weight:500;line-height:1.2;color:#333333;border-bottom:1px solid #EEEEEE;padding-bottom:10px;white-space:normal;background-color:#FFFFFF;\"><span class=\"ez-toc-section\" id=\"i-2\"><\/span>\n\t\u51c6\u5907\u5de5\u4f5c<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<h2 id=\"articleHeader2\" style=\"box-sizing:border-box;font-family:-apple-system, &quot;font-weight:500;line-height:1.2;color:#333333;margin:1.5em 0px 0px;font-size:1.75em;border-bottom:1px solid #EEEEEE;padding-bottom:10px;white-space:normal;background-color:#FFFFFF;\"><span class=\"ez-toc-section\" id=\"i-3\"><\/span>\n\t\u73af\u5883<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre class=\"hljs css\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:1.5em !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\"><span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">JDK<\/span><span class=\"hljs-selector-pseudo\" style=\"box-sizing:border-box;\">:1.8<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">Hadoop<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">Release<\/span><span class=\"hljs-selector-pseudo\" style=\"box-sizing:border-box;\">:2.7.4<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">centos<\/span><span class=\"hljs-selector-pseudo\" style=\"box-sizing:border-box;\">:7.3<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">node1<\/span>\uff08<span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">master<\/span>\uff09  \u4e3b\u673a: 192<span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.168<\/span><span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.252<\/span><span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.121<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">node2<\/span>\uff08<span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">slave1<\/span>\uff09  \u4ece\u673a: 192<span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.168<\/span><span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.252<\/span><span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.122<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">node3<\/span>\uff08<span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">slave2<\/span>\uff09  \u4ece\u673a: 192<span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.168<\/span><span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.252<\/span><span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.123<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">node4<\/span>\uff08<span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">mysql<\/span>\uff09   \u4ece\u673a: 192<span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.168<\/span><span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.252<\/span><span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.124<\/span> <\/code><\/pre>\n<h2 id=\"articleHeader3\" style=\"box-sizing:border-box;font-family:-apple-system, &quot;font-weight:500;line-height:1.2;color:#333333;margin:1.5em 0px 0px;font-size:1.75em;border-bottom:1px solid #EEEEEE;padding-bottom:10px;white-space:normal;background-color:#FFFFFF;\"><span class=\"ez-toc-section\" id=\"i-4\"><\/span>\n\t\u4f9d\u8d56\u73af\u5883<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t\u5b89\u88c5<strong style=\"box-sizing:border-box;\"><code style=\"box-sizing:border-box;font-family:&quot;font-size:0.93em;padding:2px 4px;color:#C7254E;background-color:#F9F2F4;border-radius:4px;\">Apache Hive<\/code><\/strong>\u524d\u63d0\u662f\u8981\u5148\u5b89\u88c5<code style=\"box-sizing:border-box;font-family:&quot;font-size:0.93em;padding:2px 4px;color:#C7254E;background-color:#F9F2F4;border-radius:4px;\">hadoop<\/code>\u96c6\u7fa4\uff0c\u5e76\u4e14hive\u53ea\u9700\u8981\u5728hadoop\u7684namenode\u8282\u70b9\u96c6\u7fa4\u91cc\u5b89\u88c5\u5373\u53ef\uff08\u9700\u8981\u5728\u6709\u7684namenode\u4e0a\u5b89\u88c5)\uff0c\u53ef\u4ee5\u4e0d\u5728datanode\u8282\u70b9\u7684\u673a\u5668\u4e0a\u5b89\u88c5\u3002\u8fd8\u9700\u8981\u8bf4\u660e\u7684\u662f\uff0c\u867d\u7136\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u5e76\u4e0d\u9700\u8981\u628ahadoop\u8fd0\u884c\u8d77\u6765\uff0c\u4f46\u662f\u672c\u6587\u4e2d\u7528\u5230\u4e86hadoop\u7684hdfs\u547d\u4ee4\uff0c\u5728\u6267\u884c\u8fd9\u4e9b\u547d\u4ee4\u65f6\u4f60\u5fc5\u987b\u786e\u4fddhadoop\u662f\u6b63\u5728\u8fd0\u884c\u7740\u7684\uff0c\u800c\u4e14\u542f\u52a8hive\u7684\u524d\u63d0\u4e5f\u9700\u8981hadoop\u5728\u6b63\u5e38\u8fd0\u884c\u7740\uff0c\u6240\u4ee5\u5efa\u8bae\u5148\u628ahadoop\u96c6\u7fa4\u542f\u52a8\u8d77\u6765\u3002\n<\/p>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t\u5b89\u88c5<strong style=\"box-sizing:border-box;\"><code style=\"box-sizing:border-box;font-family:&quot;font-size:0.93em;padding:2px 4px;color:#C7254E;background-color:#F9F2F4;border-radius:4px;\">MySQL<\/code><\/strong>&nbsp;\u7528\u4e8e\u5b58\u50a8 Hive \u7684\u5143\u6570\u636e\uff08\u4e5f\u53ef\u4ee5\u7528 Hive \u81ea\u5e26\u7684\u5d4c\u5165\u5f0f\u6570\u636e\u5e93 Derby\uff0c\u4f46\u662f Hive \u7684\u751f\u4ea7\u73af\u5883\u4e00\u822c\u4e0d\u7528 Derby\uff09\uff0c\u8fd9\u91cc\u53ea\u9700\u8981\u5b89\u88c5 MySQL \u5355\u673a\u7248\u5373\u53ef\uff0c\u5982\u679c\u60f3\u4fdd\u8bc1\u9ad8\u53ef\u7528\u7684\u5316\uff0c\u4e5f\u53ef\u4ee5\u90e8\u7f72 MySQL \u4e3b\u4ece\u6a21\u5f0f\uff1b\n<\/p>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t<strong style=\"box-sizing:border-box;\">Hadoop<\/strong>\n<\/p>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t<a href=\"https:\/\/segmentfault.com\/a\/1190000011266759\" style=\"box-sizing:border-box;background:transparent;color:#009A61;text-decoration-line:none;outline:0px;border-bottom:1px solid rgba(0, 154, 97, 0.25);padding-bottom:1px;\">Hadoop-2.7.4 \u96c6\u7fa4\u5feb\u901f\u642d\u5efa<\/a>\n<\/p>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t<strong style=\"box-sizing:border-box;\">MySQL<\/strong>&nbsp;\u968f\u610f\u4efb\u9009\u5176\u4e00\n<\/p>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t<a href=\"https:\/\/segmentfault.com\/a\/1190000010864818\" target=\"_blank\" style=\"box-sizing:border-box;background:transparent;color:#009A61;text-decoration-line:none;outline:0px;border-bottom:1px solid rgba(0, 154, 97, 0.25);padding-bottom:1px;\">CentOs7.3 \u5b89\u88c5 MySQL 5.7.19 \u4e8c\u8fdb\u5236\u7248\u672c<\/a>\n<\/p>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t<a href=\"https:\/\/segmentfault.com\/a\/1190000010867488\" style=\"box-sizing:border-box;background:transparent;color:#009A61;text-decoration-line:none;outline:0px;border-bottom:1px solid rgba(0, 154, 97, 0.25);padding-bottom:1px;\">\u642d\u5efa MySQL 5.7.19 \u4e3b\u4ece\u590d\u5236\uff0c\u4ee5\u53ca\u590d\u5236\u5b9e\u73b0\u7ec6\u8282\u5206\u6790<\/a>\n<\/p>\n<h1 id=\"articleHeader4\" style=\"box-sizing:border-box;font-size:2.25em;margin:1.5em 0px 0px;font-family:-apple-system, &quot;font-weight:500;line-height:1.2;color:#333333;border-bottom:1px solid #EEEEEE;padding-bottom:10px;white-space:normal;background-color:#FFFFFF;\"><span class=\"ez-toc-section\" id=\"i-5\"><\/span>\n\t\u5b89\u88c5<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<h2 id=\"articleHeader5\" style=\"box-sizing:border-box;font-family:-apple-system, &quot;font-weight:500;line-height:1.2;color:#333333;margin:1.5em 0px 0px;font-size:1.75em;border-bottom:1px solid #EEEEEE;padding-bottom:10px;white-space:normal;background-color:#FFFFFF;\"><span class=\"ez-toc-section\" id=\"i-6\"><\/span>\n\t\u4e0b\u8f7d\u89e3\u538b<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre class=\"hljs subunit\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:1.5em !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\">su hadoop\ncd \/home\/hadoop\/\nwget https:\/\/mirrors.tuna.tsinghua.edu.cn\/apache\/hive\/hive<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\">-2<\/span>.3.0\/apache-hive<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\">-2<\/span>.3.0-bin.tar.gz\ntar -zxvf apache-hive<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\">-2<\/span>.3.0-bin.tar.gz\nmv apache-hive<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\">-2<\/span>.3.0-bin hive<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\">-2<\/span>.3.0<\/code><\/pre>\n<h2 id=\"articleHeader6\" style=\"box-sizing:border-box;font-family:-apple-system, &quot;font-weight:500;line-height:1.2;color:#333333;margin:1.5em 0px 0px;font-size:1.75em;border-bottom:1px solid #EEEEEE;padding-bottom:10px;white-space:normal;background-color:#FFFFFF;\"><span class=\"ez-toc-section\" id=\"i-7\"><\/span>\n\t\u73af\u5883\u53d8\u91cf<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t\u5982\u679c\u662f\u5bf9\u6240\u6709\u7684\u7528\u6237\u90fd\u751f\u6548\u5c31\u4fee\u6539<code style=\"box-sizing:border-box;font-family:&quot;font-size:0.93em;padding:2px 4px;color:#C7254E;background-color:#F9F2F4;border-radius:4px;\">vi \/etc\/profile<\/code>&nbsp;\u6587\u4ef6<br style=\"box-sizing:border-box;\" \/><br \/>\n\u5982\u679c\u53ea\u9488\u5bf9\u5f53\u524d\u7528\u6237\u751f\u6548\u5c31\u4fee\u6539&nbsp;<code style=\"box-sizing:border-box;font-family:&quot;font-size:0.93em;padding:2px 4px;color:#C7254E;background-color:#F9F2F4;border-radius:4px;\">vi ~\/.bahsrc<\/code>&nbsp;\u6587\u4ef6\n<\/p>\n<pre class=\"hljs vim\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:0px !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:initial;overflow-wrap:normal;word-break:break-word;\">sudo&nbsp;<span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">vi<\/span>&nbsp;\/etc\/<span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">profile<\/span><\/code><\/pre>\n<pre class=\"hljs bash\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:0px !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\"><span class=\"hljs-comment\" style=\"box-sizing:border-box;color:#999988;\">#hive<\/span> <span class=\"hljs-built_in\" style=\"box-sizing:border-box;color:#0086B3;\">export<\/span> PATH=<span class=\"hljs-variable\" style=\"box-sizing:border-box;color:#008080;\">${HIVE_HOME}<\/span>\/bin:<span class=\"hljs-variable\" style=\"box-sizing:border-box;color:#008080;\">$PATH<\/span> <span class=\"hljs-built_in\" style=\"box-sizing:border-box;color:#0086B3;\">export<\/span> HIVE_HOME=\/home\/hadoop\/hive-2.3.0\/<\/code><\/pre>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t\u4f7f\u73af\u5883\u53d8\u91cf\u751f\u6548\uff0c\u8fd0\u884c&nbsp;<code style=\"box-sizing:border-box;font-family:&quot;font-size:0.93em;padding:2px 4px;color:#C7254E;background-color:#F9F2F4;border-radius:4px;\">source \/etc\/profile<\/code>\u4f7f<code style=\"box-sizing:border-box;font-family:&quot;font-size:0.93em;padding:2px 4px;color:#C7254E;background-color:#F9F2F4;border-radius:4px;\">\/etc\/profile<\/code>\u6587\u4ef6\u751f\u6548\n<\/p>\n<h2 id=\"articleHeader7\" style=\"box-sizing:border-box;font-family:-apple-system, &quot;font-weight:500;line-height:1.2;color:#333333;margin:1.5em 0px 0px;font-size:1.75em;border-bottom:1px solid #EEEEEE;padding-bottom:10px;white-space:normal;background-color:#FFFFFF;\"><span class=\"ez-toc-section\" id=\"i-8\"><\/span>\n\tHive \u914d\u7f6e Hadoop HDFS<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3 id=\"articleHeader8\" style=\"box-sizing:border-box;font-family:-apple-system, &quot;font-weight:500;line-height:1.2;color:#333333;margin:1.5em 0px 0px;font-size:1.5em;white-space:normal;background-color:#FFFFFF;\"><span class=\"ez-toc-section\" id=\"i-9\"><\/span>\n\t\u590d\u5236 hive-site.xml<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre class=\"hljs arduino\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:1.5em !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\">cd \/<span class=\"hljs-built_in\" style=\"box-sizing:border-box;color:#0086B3;\">home<\/span>\/hadoop\/hive<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">-2.3<\/span><span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">.0<\/span>\/conf\ncp hive-<span class=\"hljs-built_in\" style=\"box-sizing:border-box;color:#0086B3;\">default<\/span>.xml.<span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">template<\/span> hive-site.xml<\/code><\/pre>\n<h3 id=\"articleHeader9\" style=\"box-sizing:border-box;font-family:-apple-system, &quot;font-weight:500;line-height:1.2;color:#333333;margin:1.5em 0px 0px;font-size:1.5em;white-space:normal;background-color:#FFFFFF;\"><span class=\"ez-toc-section\" id=\"i-10\"><\/span>\n\t\u65b0\u5efa hdfs \u76ee\u5f55<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t\u4f7f\u7528 hadoop \u65b0\u5efa hdfs \u76ee\u5f55,\u56e0\u4e3a\u5728 hive-site.xml \u4e2d\u6709\u9ed8\u8ba4\u5982\u4e0b\u914d\u7f6e\uff1a\n<\/p>\n<pre class=\"hljs dts\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:0px !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\"><span class=\"hljs-params\" style=\"box-sizing:border-box;\">&lt;property&gt;<\/span> <span class=\"hljs-params\" style=\"box-sizing:border-box;\">&lt;name&gt;<\/span>hive.metastore.warehouse.dir<span class=\"hljs-params\" style=\"box-sizing:border-box;\">&lt;\/name&gt;<\/span> <span class=\"hljs-params\" style=\"box-sizing:border-box;\">&lt;value&gt;<\/span><span class=\"hljs-meta-keyword\" style=\"box-sizing:border-box;\">\/user\/<\/span>hive\/warehouse<span class=\"hljs-params\" style=\"box-sizing:border-box;\">&lt;\/value&gt;<\/span> <span class=\"hljs-params\" style=\"box-sizing:border-box;\">&lt;description&gt;<\/span>location of default database for the warehouse<span class=\"hljs-params\" style=\"box-sizing:border-box;\">&lt;\/description&gt;<\/span> <span class=\"hljs-params\" style=\"box-sizing:border-box;\">&lt;\/property&gt;<\/span> <span class=\"hljs-params\" style=\"box-sizing:border-box;\">&lt;property&gt;<\/span><\/code><\/pre>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t\u8fdb\u5165 hadoop \u5b89\u88c5\u76ee\u5f55 \u6267\u884chadoop\u547d\u4ee4\u65b0\u5efa\/user\/hive\/warehouse\u76ee\u5f55\uff0c\u5e76\u6388\u6743\uff0c\u7528\u4e8e\u5b58\u50a8\u6587\u4ef6\n<\/p>\n<pre class=\"hljs groovy\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:0px !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\">cd <span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/home\/<\/span>hadoop\/hadoop<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">-2.7<\/span><span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">.4<\/span> bin<span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/hadoop fs -mkdir -p \/<\/span>user<span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/hive\/<\/span>warehouse  \nbin<span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/hadoop fs -mkdir -p \/<\/span>user<span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/hive\/<\/span>tmp  \nbin<span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/hadoop fs -mkdir -p \/<\/span>user<span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/hive\/<\/span>log  \nbin<span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/hadoop fs -chmod -R 777 \/<\/span>user<span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/hive\/<\/span>warehouse  \nbin<span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/hadoop fs -chmod -R 777 \/<\/span>user<span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/hive\/<\/span>tmp  \nbin<span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/hadoop fs -chmod -R 777 \/<\/span>user<span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/hive\/<\/span>log <\/code><\/pre>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t\u7528\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5\u76ee\u5f55\u662f\u5426\u521b\u5efa\u6210\u529f\n<\/p>\n<pre class=\"hljs armasm\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:0px !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:initial;overflow-wrap:normal;word-break:break-word;\"><span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">bin\/hadoop&nbsp;<\/span>fs -ls \/user\/hive<\/code><\/pre>\n<h3 id=\"articleHeader10\" style=\"box-sizing:border-box;font-family:-apple-system, &quot;font-weight:500;line-height:1.2;color:#333333;margin:1.5em 0px 0px;font-size:1.5em;white-space:normal;background-color:#FFFFFF;\"><span class=\"ez-toc-section\" id=\"i-11\"><\/span>\n\t\u4fee\u6539 hive-site.xml<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t\u641c\u7d22hive.exec.scratchdir,\u5c06\u8be5name\u5bf9\u5e94\u7684value\u4fee\u6539\u4e3a\/user\/hive\/tmp\n<\/p>\n<pre style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-top:1.5em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;\"><code class=\"xml\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\"><span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">property<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">name<\/span>&gt;<\/span>hive.exec.scratchdir<span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">name<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">value<\/span>&gt;<\/span>\/user\/hive\/tmp<span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">value<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">property<\/span>&gt;<\/span> <\/code><\/pre>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t\u641c\u7d22hive.querylog.location,\u5c06\u8be5name\u5bf9\u5e94\u7684value\u4fee\u6539\u4e3a\/user\/hive\/log\/hadoop\n<\/p>\n<pre style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-top:1.5em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;\"><code class=\"xml\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\"><span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">property<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">name<\/span>&gt;<\/span>hive.querylog.location<span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">name<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">value<\/span>&gt;<\/span>\/user\/hive\/log\/hadoop<span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">value<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">description<\/span>&gt;<\/span>Location of Hive run time structured log file<span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">description<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">property<\/span>&gt;<\/span><\/code><\/pre>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t\u641c\u7d22javax.jdo.option.connectionURL,\u5c06\u8be5name\u5bf9\u5e94\u7684value\u4fee\u6539\u4e3aMySQL\u7684\u5730\u5740\n<\/p>\n<pre style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-top:1.5em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;\"><code class=\"xml\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\"><span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">property<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">name<\/span>&gt;<\/span>javax.jdo.option.ConnectionURL<span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">name<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">value<\/span>&gt;<\/span>jdbc:mysql:\/\/192.168.252.124:3306\/hive?createDatabaseIfNotExist=true<span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">value<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">description<\/span>&gt;<\/span> JDBC connect string for a JDBC metastore.\n      To use SSL to encrypt\/authenticate the connection, provide database-specific SSL flag in the connection URL.\n      For example, jdbc:postgresql:\/\/myhost\/db?ssl=true for postgres database. <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">description<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">property<\/span>&gt;<\/span><\/code><\/pre>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t\u641c\u7d22javax.jdo.option.ConnectionDriverName\uff0c\u5c06\u8be5name\u5bf9\u5e94\u7684value\u4fee\u6539\u4e3aMySQL\u9a71\u52a8\u7c7b\u8def\u5f84\n<\/p>\n<pre style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-top:1.5em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;\"><code class=\"xml\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\"><span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">property<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">name<\/span>&gt;<\/span>javax.jdo.option.ConnectionDriverName<span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">name<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">value<\/span>&gt;<\/span>com.mysql.jdbc.Driver<span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">value<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">description<\/span>&gt;<\/span>Driver class name for a JDBC metastore<span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">description<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">property<\/span>&gt;<\/span><\/code><\/pre>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t\u641c\u7d22javax.jdo.option.ConnectionUserName\uff0c\u5c06\u5bf9\u5e94\u7684value\u4fee\u6539\u4e3aMySQL\u6570\u636e\u5e93\u767b\u5f55\u540d\n<\/p>\n<pre class=\"hljs xml\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:0px !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\"><span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">property<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">name<\/span>&gt;<\/span>javax.jdo.option.ConnectionUserName<span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">name<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">value<\/span>&gt;<\/span>root<span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">value<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">description<\/span>&gt;<\/span>Username to use against metastore database<span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">description<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">property<\/span>&gt;<\/span><\/code><\/pre>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t\u641c\u7d22javax.jdo.option.ConnectionPassword\uff0c\u5c06\u5bf9\u5e94\u7684value\u4fee\u6539\u4e3aMySQL\u6570\u636e\u5e93\u7684\u767b\u5f55\u5bc6\u7801\n<\/p>\n<pre class=\"hljs xml\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:0px !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\"><span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">property<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">name<\/span>&gt;<\/span>javax.jdo.option.ConnectionPassword<span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">name<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">value<\/span>&gt;<\/span>mima<span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">value<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;<span class=\"hljs-name\" style=\"box-sizing:border-box;\">description<\/span>&gt;<\/span>password to use against metastore database<span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">description<\/span>&gt;<\/span> <span class=\"hljs-tag\" style=\"box-sizing:border-box;color:#000080;\">&lt;\/<span class=\"hljs-name\" style=\"box-sizing:border-box;\">property<\/span>&gt;<\/span><\/code><\/pre>\n<h3 id=\"articleHeader11\" style=\"box-sizing:border-box;font-family:-apple-system, &quot;font-weight:500;line-height:1.2;color:#333333;margin:1.5em 0px 0px;font-size:1.5em;white-space:normal;background-color:#FFFFFF;\"><span class=\"ez-toc-section\" id=\"i-12\"><\/span>\n\t\u521b\u5efa tmp \u6587\u4ef6<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre class=\"hljs arduino\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:1.5em !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:initial;overflow-wrap:normal;word-break:break-word;\"><span class=\"hljs-built_in\" style=\"box-sizing:border-box;color:#0086B3;\">mkdir<\/span>&nbsp;\/<span class=\"hljs-built_in\" style=\"box-sizing:border-box;color:#0086B3;\">home<\/span>\/hadoop\/hive<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">-2.3<\/span><span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">.0<\/span>\/tmp<\/code><\/pre>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t\u5e76\u5728&nbsp;<code style=\"box-sizing:border-box;font-family:&quot;font-size:0.93em;padding:2px 4px;color:#C7254E;background-color:#F9F2F4;border-radius:4px;\">hive-site.xml<\/code>&nbsp;\u4e2d\u4fee\u6539\n<\/p>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t\u628a<code style=\"box-sizing:border-box;font-family:&quot;font-size:0.93em;padding:2px 4px;color:#C7254E;background-color:#F9F2F4;border-radius:4px;\">{system:java.io.tmpdir}<\/code>&nbsp;\u6539\u6210 \/home\/hadoop\/hive-2.3.0\/tmp\n<\/p>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t\u628a&nbsp;<code style=\"box-sizing:border-box;font-family:&quot;font-size:0.93em;padding:2px 4px;color:#C7254E;background-color:#F9F2F4;border-radius:4px;\">{system:user.name}<\/code>&nbsp;\u6539\u6210&nbsp;<code style=\"box-sizing:border-box;font-family:&quot;font-size:0.93em;padding:2px 4px;color:#C7254E;background-color:#F9F2F4;border-radius:4px;\">{user.name}<\/code>\n<\/p>\n<h3 id=\"articleHeader12\" style=\"box-sizing:border-box;font-family:-apple-system, &quot;font-weight:500;line-height:1.2;color:#333333;margin:1.5em 0px 0px;font-size:1.5em;white-space:normal;background-color:#FFFFFF;\"><span class=\"ez-toc-section\" id=\"i-13\"><\/span>\n\t\u65b0\u5efa hive-env.sh<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre class=\"hljs stylus\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:1.5em !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\">cp hive-env<span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.sh<\/span><span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.template<\/span> hive-env<span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.sh<\/span> vi hive-env<span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.sh<\/span> HADOOP_HOME=\/home\/hadoop\/hadoop-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">2.7<\/span>.<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">4<\/span>\/\nexport HIVE_CONF_DIR=\/home\/hadoop\/hive-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">2.3<\/span>.<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">0<\/span>\/conf\nexport HIVE_AUX_JARS_PATH=\/home\/hadoop\/hive-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">2.3<\/span>.<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">0<\/span>\/lib<\/code><\/pre>\n<h3 id=\"articleHeader13\" style=\"box-sizing:border-box;font-family:-apple-system, &quot;font-weight:500;line-height:1.2;color:#333333;margin:1.5em 0px 0px;font-size:1.5em;white-space:normal;background-color:#FFFFFF;\"><span class=\"ez-toc-section\" id=\"i-14\"><\/span>\n\t\u4e0b\u8f7d mysql \u9a71\u52a8\u5305<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre class=\"hljs crystal\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:1.5em !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\">cd \/home\/hadoop\/hive-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">2.3<\/span>.<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">0<\/span>\/<span class=\"hljs-class\" style=\"box-sizing:border-box;\"><span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">lib<\/span><\/span> wget <span class=\"hljs-symbol\" style=\"box-sizing:border-box;color:#990073;\">http:<\/span>\/<span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/central.maven.org\/maven<\/span>2\/mysql\/mysql-connector-java\/<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">5.1<\/span>.<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">38<\/span>\/mysql-connector-java-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">5.1<\/span>.<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">38<\/span>.jar<\/code><\/pre>\n<h2 id=\"articleHeader14\" style=\"box-sizing:border-box;font-family:-apple-system, &quot;font-weight:500;line-height:1.2;color:#333333;margin:1.5em 0px 0px;font-size:1.75em;border-bottom:1px solid #EEEEEE;padding-bottom:10px;white-space:normal;background-color:#FFFFFF;\"><span class=\"ez-toc-section\" id=\"i-15\"><\/span>\n\t\u521d\u59cb\u5316 mysql<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3 id=\"articleHeader15\" style=\"box-sizing:border-box;font-family:-apple-system, &quot;font-weight:500;line-height:1.2;color:#333333;margin:1.5em 0px 0px;font-size:1.5em;white-space:normal;background-color:#FFFFFF;\"><span class=\"ez-toc-section\" id=\"i-16\"><\/span>\n\tMySQL\u6570\u636e\u5e93\u8fdb\u884c\u521d\u59cb\u5316<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t\u9996\u5148\u786e\u4fdd mysql \u4e2d\u5df2\u7ecf\u521b\u5efa&nbsp;<code style=\"box-sizing:border-box;font-family:&quot;font-size:0.93em;padding:2px 4px;color:#C7254E;background-color:#F9F2F4;border-radius:4px;\">hive<\/code>&nbsp;\u5e93\n<\/p>\n<pre class=\"hljs awk\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:0px !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\">cd <span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/home\/<\/span>hadoop<span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/hive-2.3.0\/<\/span>bin\n.<span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/schematool -initSchema -dbType mysql<\/span><\/code><\/pre>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t\u5982\u679c\u770b\u5230\u5982\u4e0b,\u8868\u793a\u521d\u59cb\u5316\u6210\u529f\n<\/p>\n<pre class=\"hljs css\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:0px !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\"><span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">Starting<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">metastore<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">schema<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">initialization<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">to<\/span> 2<span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.3<\/span><span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.0<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">Initialization<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">script<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">hive-schema-2<\/span><span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.3<\/span><span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.0<\/span><span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.mysql<\/span><span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.sql<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">Initialization<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">script<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">completed<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">schemaTool<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">completed<\/span><\/code><\/pre>\n<h3 id=\"articleHeader16\" style=\"box-sizing:border-box;font-family:-apple-system, &quot;font-weight:500;line-height:1.2;color:#333333;margin:1.5em 0px 0px;font-size:1.5em;white-space:normal;background-color:#FFFFFF;\"><span class=\"ez-toc-section\" id=\"i-17\"><\/span>\n\t\u67e5\u770b mysql \u6570\u636e\u5e93<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre class=\"hljs awk\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:1.5em !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:initial;overflow-wrap:normal;word-break:break-word;\"><span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/usr\/<\/span>local<span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/mysql\/<\/span>bin<span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/mysql -uroot -p<\/span><\/code><\/pre>\n<pre class=\"hljs asciidoc\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:0px !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\"><span class=\"hljs-section\" style=\"box-sizing:border-box;color:#990000;font-weight:bold;\">mysql&gt; show databases;\n+--------------------+<\/span> <span class=\"hljs-section\" style=\"box-sizing:border-box;color:#990000;font-weight:bold;\">| Database           |\n+--------------------+<\/span> | information<span class=\"hljs-emphasis\" style=\"box-sizing:border-box;font-style:italic;\">_schema |\n| hive               |\n| mysql              |\n| performance_<\/span>schema | <span class=\"hljs-section\" style=\"box-sizing:border-box;color:#990000;font-weight:bold;\">| sys                |\n+--------------------+<\/span> 5 rows in set (0.00 sec)<\/code><\/pre>\n<pre class=\"hljs gherkin\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:0px !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\">mysql&gt; use hive;\nReading table information for completion of table and column names\nYou can turn off this feature to get a quicker startup with -A\n\nDatabase changed\nmysql&gt; show tables;\n+---------------------------+\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> Tables_in_hive <\/span>|\n+---------------------------+\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> AUX_TABLE <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> BUCKETING_COLS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> CDS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> COLUMNS_V2 <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> COMPACTION_QUEUE <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> COMPLETED_COMPACTIONS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> COMPLETED_TXN_COMPONENTS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> DATABASE_PARAMS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> DBS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> DB_PRIVS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> DELEGATION_TOKENS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> FUNCS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> FUNC_RU <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> GLOBAL_PRIVS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> HIVE_LOCKS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> IDXS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> INDEX_PARAMS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> KEY_CONSTRAINTS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> MASTER_KEYS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> NEXT_COMPACTION_QUEUE_ID <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> NEXT_LOCK_ID <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> NEXT_TXN_ID <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> NOTIFICATION_LOG <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> NOTIFICATION_SEQUENCE <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> NUCLEUS_TABLES <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> PARTITIONS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> PARTITION_EVENTS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> PARTITION_KEYS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> PARTITION_KEY_VALS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> PARTITION_PARAMS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> PART_COL_PRIVS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> PART_COL_STATS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> PART_PRIVS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> ROLES <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> ROLE_MAP <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> SDS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> SD_PARAMS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> SEQUENCE_TABLE <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> SERDES <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> SERDE_PARAMS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> SKEWED_COL_NAMES <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> SKEWED_COL_VALUE_LOC_MAP <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> SKEWED_STRING_LIST <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> SKEWED_STRING_LIST_VALUES <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> SKEWED_VALUES <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> SORT_COLS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> TABLE_PARAMS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> TAB_COL_STATS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> TBLS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> TBL_COL_PRIVS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> TBL_PRIVS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> TXNS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> TXN_COMPONENTS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> TYPES <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> TYPE_FIELDS <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> VERSION <\/span>|\n|<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\"> WRITE_SET <\/span>|\n+---------------------------+\n57 rows in set (0.00 sec)<\/code><\/pre>\n<h2 id=\"articleHeader17\" style=\"box-sizing:border-box;font-family:-apple-system, &quot;font-weight:500;line-height:1.2;color:#333333;margin:1.5em 0px 0px;font-size:1.75em;border-bottom:1px solid #EEEEEE;padding-bottom:10px;white-space:normal;background-color:#FFFFFF;\"><span class=\"ez-toc-section\" id=\"i-18\"><\/span>\n\t\u542f\u52a8 Hive<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3 id=\"articleHeader18\" style=\"box-sizing:border-box;font-family:-apple-system, &quot;font-weight:500;line-height:1.2;color:#333333;margin:1.5em 0px 0px;font-size:1.5em;white-space:normal;background-color:#FFFFFF;\"><span class=\"ez-toc-section\" id=\"i-19\"><\/span>\n\t\u7b80\u5355\u6d4b\u8bd5<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t<strong style=\"box-sizing:border-box;\">\u542f\u52a8Hive<\/strong>\n<\/p>\n<pre class=\"hljs awk\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:0px !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\">cd <span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/home\/<\/span>hadoop<span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/hive-2.3.0\/<\/span>bin\n\n.<span class=\"hljs-regexp\" style=\"box-sizing:border-box;color:#009926;\">\/hive<\/span><\/code><\/pre>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t<strong style=\"box-sizing:border-box;\">\u521b\u5efa hive \u5e93<\/strong>\n<\/p>\n<pre class=\"hljs n1ql\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:0px !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\">hive&gt; <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">create<\/span> <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">database<\/span> ymq;\nOK\nTime taken: 0.742 seconds<\/code><\/pre>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t<strong style=\"box-sizing:border-box;\">\u9009\u62e9\u5e93<\/strong>\n<\/p>\n<pre class=\"hljs gauss\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:0px !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\">hive&gt; <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">use<\/span> ymq;\nOK <span class=\"hljs-built_in\" style=\"box-sizing:border-box;color:#0086B3;\">Time<\/span> taken: <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">0.036<\/span> seconds<\/code><\/pre>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t<strong style=\"box-sizing:border-box;\">\u521b\u5efa\u8868<\/strong>\n<\/p>\n<pre class=\"hljs gauss\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:0px !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\">hive&gt; <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">create<\/span> table test (mykey <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">string<\/span>,myval <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">string<\/span>);\nOK <span class=\"hljs-built_in\" style=\"box-sizing:border-box;color:#0086B3;\">Time<\/span> taken: <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">0.569<\/span> seconds<\/code><\/pre>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t<strong style=\"box-sizing:border-box;\">\u63d2\u5165\u6570\u636e<\/strong>\n<\/p>\n<pre class=\"hljs vhdl\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:0px !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\">hive&gt; insert into test values(<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\">\"1\"<\/span>,<span class=\"hljs-string\" style=\"box-sizing:border-box;color:#DD1144;\">\"www.ymq.io\"<\/span>); <span class=\"hljs-literal\" style=\"box-sizing:border-box;color:#008080;\">WARNING<\/span>: Hive-<span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">on<\/span>-MR <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">is<\/span> deprecated <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">in<\/span> Hive <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">2<\/span> <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">and<\/span> may <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">not<\/span> be available <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">in<\/span> the future versions. Consider using a different execution engine (i.e. spark, tez) <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">or<\/span> using Hive <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">1<\/span>.X releases.\nQuery ID = hadoop_20170922011126_abadfa44-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">8<\/span>ebe-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">4<\/span>ffc-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">9615<\/span>-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">4241707<\/span>b3c03\nTotal jobs = <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">3<\/span> Launching Job <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">1<\/span> <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">out<\/span> <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">of<\/span> <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">3<\/span> Number <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">of<\/span> reduce tasks <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">is<\/span> set <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">to<\/span> <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">0<\/span> since there<span class=\"hljs-symbol\" style=\"box-sizing:border-box;color:#990073;\">'s<\/span> no reduce operator\nStarting Job = job_1506006892375_0001, Tracking URL = http:\/\/node1:<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">8088<\/span>\/proxy\/application_1506006892375_0001\/\nKill Command = \/home\/hadoop\/hadoop-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">2.7<\/span>.<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">4<\/span>\/\/bin\/hadoop job  -kill job_1506006892375_0001\nHadoop job information <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">for<\/span> Stage-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">1<\/span>: number <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">of<\/span> mappers: <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">1<\/span>; number <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">of<\/span> reducers: <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">0<\/span> <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">2017<\/span>-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">09<\/span>-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">22<\/span> <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">01<\/span>:<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">12<\/span>:<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">12<\/span>,<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">763<\/span> Stage-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">1<\/span> <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">map<\/span> = <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">0<\/span>%,  reduce = <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">0<\/span>% <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">2017<\/span>-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">09<\/span>-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">22<\/span> <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">01<\/span>:<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">12<\/span>:<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">20<\/span>,<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">751<\/span> Stage-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">1<\/span> <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">map<\/span> = <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">100<\/span>%,  reduce = <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">0<\/span>%, Cumulative CPU <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">1.24<\/span> sec\nMapReduce Total cumulative CPU <span class=\"hljs-built_in\" style=\"box-sizing:border-box;color:#0086B3;\">time<\/span>: <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">1<\/span> seconds <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">240<\/span> msec\nEnded Job = job_1506006892375_0001\nStage-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">4<\/span> <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">is<\/span> selected by condition resolver.\nStage-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">3<\/span> <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">is<\/span> filtered <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">out<\/span> by condition resolver.\nStage-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">5<\/span> <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">is<\/span> filtered <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">out<\/span> by condition resolver.\nMoving data <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">to<\/span> directory hdfs:\/\/node1:<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">9000<\/span>\/user\/hive\/warehouse\/ymq.db\/test\/.hive-staging_hive_2017-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">09<\/span>-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">22_01<\/span>-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">11<\/span>-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">26_242_8022847052615616955<\/span>-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">1<\/span>\/-ext-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">10000<\/span> Loading data <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">to<\/span> table ymq.test\nMapReduce Jobs Launched: \nStage-Stage-<span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">1<\/span>: <span class=\"hljs-keyword\" style=\"box-sizing:border-box;font-weight:bold;\">Map<\/span>: <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">1<\/span> Cumulative CPU: <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">1.24<\/span> sec   HDFS Read: <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">4056<\/span> HDFS Write: <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">77<\/span> SUCCESS\nTotal MapReduce CPU <span class=\"hljs-built_in\" style=\"box-sizing:border-box;color:#0086B3;\">Time<\/span> Spent: <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">1<\/span> seconds <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">240<\/span> msec\nOK <span class=\"hljs-built_in\" style=\"box-sizing:border-box;color:#0086B3;\">Time<\/span> taken: <span class=\"hljs-number\" style=\"box-sizing:border-box;color:#008080;\">56.642<\/span> seconds<\/code><\/pre>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\t\u67e5\u8be2\u6570\u636e\n<\/p>\n<pre class=\"hljs css\" style=\"box-sizing:border-box;overflow:auto;font-family:&quot;font-size:0.93em;padding:1em;margin-bottom:1.5em;line-height:1.45;word-break:break-all;word-wrap:break-word;color:#333333;background:url(&quot;border:none;border-radius:4px;max-height:35em;position:relative;margin-top:0px !important;\"><code class=\"sh\" style=\"box-sizing:border-box;font-family:&quot;font-size:1em;padding:0px;color:inherit;background:none;border-radius:0px;white-space:inherit;overflow-wrap:normal;\"><span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">hive<\/span>&gt; <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">select<\/span> * <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">from<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">test<\/span>; <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">OK<\/span> 1 <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">www<\/span><span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.ymq<\/span><span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.io<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">Time<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">taken<\/span>: 0<span class=\"hljs-selector-class\" style=\"box-sizing:border-box;\">.253<\/span> <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">seconds<\/span>, <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">Fetched<\/span>: 1 <span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">row<\/span>(<span class=\"hljs-selector-tag\" style=\"box-sizing:border-box;font-weight:bold;\">s<\/span>)<\/code><\/pre>\n<h1 id=\"articleHeader20\" style=\"box-sizing:border-box;font-size:2.25em;margin:1.5em 0px 0px;font-family:-apple-system, &quot;font-weight:500;line-height:1.2;color:#333333;border-bottom:1px solid #EEEEEE;padding-bottom:10px;white-space:normal;background-color:#FFFFFF;\"><span class=\"ez-toc-section\" id=\"i-20\"><\/span>\n\tContact<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<ul style=\"box-sizing:border-box;margin:1.5em 0px 1.5em 3em;padding-left:0px;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n<li style=\"box-sizing:border-box;margin:0.3em 0px;\">\n\t\t\u4f5c\u8005\uff1a\u9e4f\u78ca\n\t<\/li>\n<li style=\"box-sizing:border-box;margin:0.3em 0px;\">\n\t\t\u51fa\u5904\uff1a<a href=\"http:\/\/www.ymq.io\/\" target=\"_blank\" style=\"box-sizing:border-box;background:transparent;color:#009A61;text-decoration-line:none;outline:0px;border-bottom:1px solid rgba(0, 154, 97, 0.25);padding-bottom:1px;\">http:\/\/www.ymq.io<\/a>\n\t<\/li>\n<li style=\"box-sizing:border-box;margin:0.3em 0px;\">\n\t\tEmail\uff1a<a style=\"box-sizing:border-box;background:transparent;color:#009A61;outline:0px;border-bottom:1px solid rgba(0, 154, 97, 0.25);padding-bottom:1px;\">admin@souyunku.com<\/a>\n\t<\/li>\n<li style=\"box-sizing:border-box;margin:0.3em 0px;\">\n\t\t\u7248\u6743\u5f52\u4f5c\u8005\u6240\u6709\uff0c\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904\n\t<\/li>\n<li style=\"box-sizing:border-box;margin:0.3em 0px;\">\n\t\tWechat\uff1a\u5173\u6ce8\u516c\u4f17\u53f7\uff0c\u641c\u4e91\u5e93\uff0c\u4e13\u6ce8\u4e8e\u5f00\u53d1\u6280\u672f\u7684\u7814\u7a76\u4e0e\u77e5\u8bc6\u5206\u4eab\n\t<\/li>\n<li style=\"box-sizing:border-box;margin:0.3em 0px;\">\n\t\t\u539f\u6587\uff1ahttps:\/\/segmentfault.com\/a\/1190000011303459\n\t<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<h1 id=\"articleHeader0\" style=\"box-sizing:border-box;font-size:2.25em;margin:0px;font-family:-apple-system, &quot;font-weight:500;line-height:1.2;color:#333333;border-bottom:1px solid #EEEEEE;padding-bottom:10px;white-space:normal;background-color:#FFFFFF;\">\n\tHive \u7b80\u4ecb<br \/>\n<\/h1>\n<p style=\"box-sizing:border-box;margin-top:1.5em;margin-bottom:1.5em;color:#333333;font-family:-apple-system, &quot;font-size:14px;white-space:normal;background-color:#FFFFFF;\">\n\tHive \u662f\u4e00\u4e2a\u57fa\u4e8e hadoop \u7684\u5f00\u6e90\u6570\u636e\u4ed3\u5e93\u5de5\u5177\uff0c\u7528\u4e8e\u5b58\u50a8\u548c\u5904\u7406\u6d77\u91cf\u7ed3\u6784\u5316\u6570\u636e\u3002\u5b83\u628a\u6d77\u91cf\u6570\u636e\u5b58\u50a8\u4e8e hadoop \u6587\u4ef6\u7cfb\u7edf\uff0c\u800c\u4e0d\u662f\u6570\u636e\u5e93\uff0c\u4f46\u63d0\u4f9b\u4e86\u4e00\u5957\u7c7b\u6570\u636e\u5e93\u7684\u6570\u636e\u5b58\u50a8\u548c\u5904\u7406\u673a\u5236\uff0c\u5e76\u91c7\u7528 HQL \uff08\u7c7b SQL \uff09\u8bed\u8a00\u5bf9\u8fd9\u4e9b\u6570\u636e\u8fdb\u884c\u81ea\u52a8\u5316\u7ba1\u7406\u548c\u5904\u7406\u3002\u6211\u4eec\u53ef\u4ee5\u628a Hive \u4e2d\u6d77\u91cf\u7ed3\u6784\u5316\u6570\u636e\u770b\u6210\u4e00\u4e2a\u4e2a\u7684\u8868\uff0c\u800c\u5b9e\u9645\u4e0a\u8fd9\u4e9b\u6570\u636e\u662f\u5206\u5e03\u5f0f\u5b58\u50a8\u5728 HDFS \u4e2d\u7684\u3002 Hive \u7ecf\u8fc7\u5bf9\u8bed&#8230;<\/p>\n","protected":false},"author":1,"featured_media":569,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[337],"tags":[],"class_list":["post-233","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[\u8f6c] Apache Hive-2.3.0 \u5feb\u901f\u642d\u5efa\u4e0e\u4f7f\u7528 - Wayne&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/weizn.net\/?p=233\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[\u8f6c] Apache Hive-2.3.0 \u5feb\u901f\u642d\u5efa\u4e0e\u4f7f\u7528 - Wayne&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"Hive \u7b80\u4ecb  Hive \u662f\u4e00\u4e2a\u57fa\u4e8e hadoop \u7684\u5f00\u6e90\u6570\u636e\u4ed3\u5e93\u5de5\u5177\uff0c\u7528\u4e8e\u5b58\u50a8\u548c\u5904\u7406\u6d77\u91cf\u7ed3\u6784\u5316\u6570\u636e\u3002\u5b83\u628a\u6d77\u91cf\u6570\u636e\u5b58\u50a8\u4e8e hadoop \u6587\u4ef6\u7cfb\u7edf\uff0c\u800c\u4e0d\u662f\u6570\u636e\u5e93\uff0c\u4f46\u63d0\u4f9b\u4e86\u4e00\u5957\u7c7b\u6570\u636e\u5e93\u7684\u6570\u636e\u5b58\u50a8\u548c\u5904\u7406\u673a\u5236\uff0c\u5e76\u91c7\u7528 HQL \uff08\u7c7b SQL \uff09\u8bed\u8a00\u5bf9\u8fd9\u4e9b\u6570\u636e\u8fdb\u884c\u81ea\u52a8\u5316\u7ba1\u7406\u548c\u5904\u7406\u3002\u6211\u4eec\u53ef\u4ee5\u628a Hive \u4e2d\u6d77\u91cf\u7ed3\u6784\u5316\u6570\u636e\u770b\u6210\u4e00\u4e2a\u4e2a\u7684\u8868\uff0c\u800c\u5b9e\u9645\u4e0a\u8fd9\u4e9b\u6570\u636e\u662f\u5206\u5e03\u5f0f\u5b58\u50a8\u5728 HDFS \u4e2d\u7684\u3002 Hive \u7ecf\u8fc7\u5bf9\u8bed...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/weizn.net\/?p=233\" \/>\n<meta property=\"og:site_name\" content=\"Wayne&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-21T16:28:41+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"zinan\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/weizn.net\/#website\",\"url\":\"http:\/\/weizn.net\/\",\"name\":\"Wayne&#039;s Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/weizn.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/weizn.net\/?p=233#primaryimage\",\"inLanguage\":\"zh-Hans\",\"url\":\"http:\/\/weizn.net\/wp-content\/uploads\/2020\/10\/apache_hive_hero_final-01.jpg\",\"contentUrl\":\"http:\/\/weizn.net\/wp-content\/uploads\/2020\/10\/apache_hive_hero_final-01.jpg\",\"width\":1200,\"height\":630},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/weizn.net\/?p=233#webpage\",\"url\":\"http:\/\/weizn.net\/?p=233\",\"name\":\"[\\u8f6c] Apache Hive-2.3.0 \\u5feb\\u901f\\u642d\\u5efa\\u4e0e\\u4f7f\\u7528 - Wayne&#039;s Blog\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/weizn.net\/?p=233#primaryimage\"},\"datePublished\":\"2018-03-21T16:28:41+00:00\",\"dateModified\":\"2018-03-21T16:28:41+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/weizn.net\/?p=233#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/weizn.net\/?p=233\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/weizn.net\/?p=233#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"http:\/\/weizn.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[\\u8f6c] Apache Hive-2.3.0 \\u5feb\\u901f\\u642d\\u5efa\\u4e0e\\u4f7f\\u7528\"}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/weizn.net\/?p=233#article\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/?p=233#webpage\"},\"author\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"headline\":\"[\\u8f6c] Apache Hive-2.3.0 \\u5feb\\u901f\\u642d\\u5efa\\u4e0e\\u4f7f\\u7528\",\"datePublished\":\"2018-03-21T16:28:41+00:00\",\"dateModified\":\"2018-03-21T16:28:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/weizn.net\/?p=233#webpage\"},\"wordCount\":147,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"image\":{\"@id\":\"http:\/\/weizn.net\/?p=233#primaryimage\"},\"thumbnailUrl\":\"http:\/\/weizn.net\/wp-content\/uploads\/2020\/10\/apache_hive_hero_final-01.jpg\",\"articleSection\":[\"\\u6570\\u636e\\u5206\\u6790\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/weizn.net\/?p=233#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\",\"name\":\"zinan\",\"logo\":{\"@id\":\"http:\/\/weizn.net\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[\u8f6c] Apache Hive-2.3.0 \u5feb\u901f\u642d\u5efa\u4e0e\u4f7f\u7528 - Wayne&#039;s Blog","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":"http:\/\/weizn.net\/?p=233","og_locale":"zh_CN","og_type":"article","og_title":"[\u8f6c] Apache Hive-2.3.0 \u5feb\u901f\u642d\u5efa\u4e0e\u4f7f\u7528 - Wayne&#039;s Blog","og_description":"Hive \u7b80\u4ecb  Hive \u662f\u4e00\u4e2a\u57fa\u4e8e hadoop \u7684\u5f00\u6e90\u6570\u636e\u4ed3\u5e93\u5de5\u5177\uff0c\u7528\u4e8e\u5b58\u50a8\u548c\u5904\u7406\u6d77\u91cf\u7ed3\u6784\u5316\u6570\u636e\u3002\u5b83\u628a\u6d77\u91cf\u6570\u636e\u5b58\u50a8\u4e8e hadoop \u6587\u4ef6\u7cfb\u7edf\uff0c\u800c\u4e0d\u662f\u6570\u636e\u5e93\uff0c\u4f46\u63d0\u4f9b\u4e86\u4e00\u5957\u7c7b\u6570\u636e\u5e93\u7684\u6570\u636e\u5b58\u50a8\u548c\u5904\u7406\u673a\u5236\uff0c\u5e76\u91c7\u7528 HQL \uff08\u7c7b SQL \uff09\u8bed\u8a00\u5bf9\u8fd9\u4e9b\u6570\u636e\u8fdb\u884c\u81ea\u52a8\u5316\u7ba1\u7406\u548c\u5904\u7406\u3002\u6211\u4eec\u53ef\u4ee5\u628a Hive \u4e2d\u6d77\u91cf\u7ed3\u6784\u5316\u6570\u636e\u770b\u6210\u4e00\u4e2a\u4e2a\u7684\u8868\uff0c\u800c\u5b9e\u9645\u4e0a\u8fd9\u4e9b\u6570\u636e\u662f\u5206\u5e03\u5f0f\u5b58\u50a8\u5728 HDFS \u4e2d\u7684\u3002 Hive \u7ecf\u8fc7\u5bf9\u8bed...","og_url":"http:\/\/weizn.net\/?p=233","og_site_name":"Wayne&#039;s Blog","article_published_time":"2018-03-21T16:28:41+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"zinan","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"http:\/\/weizn.net\/#website","url":"http:\/\/weizn.net\/","name":"Wayne&#039;s Blog","description":"","publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/weizn.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"ImageObject","@id":"http:\/\/weizn.net\/?p=233#primaryimage","inLanguage":"zh-Hans","url":"http:\/\/weizn.net\/wp-content\/uploads\/2020\/10\/apache_hive_hero_final-01.jpg","contentUrl":"http:\/\/weizn.net\/wp-content\/uploads\/2020\/10\/apache_hive_hero_final-01.jpg","width":1200,"height":630},{"@type":"WebPage","@id":"http:\/\/weizn.net\/?p=233#webpage","url":"http:\/\/weizn.net\/?p=233","name":"[\u8f6c] Apache Hive-2.3.0 \u5feb\u901f\u642d\u5efa\u4e0e\u4f7f\u7528 - Wayne&#039;s Blog","isPartOf":{"@id":"http:\/\/weizn.net\/#website"},"primaryImageOfPage":{"@id":"http:\/\/weizn.net\/?p=233#primaryimage"},"datePublished":"2018-03-21T16:28:41+00:00","dateModified":"2018-03-21T16:28:41+00:00","breadcrumb":{"@id":"http:\/\/weizn.net\/?p=233#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/weizn.net\/?p=233"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/weizn.net\/?p=233#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/weizn.net\/"},{"@type":"ListItem","position":2,"name":"[\u8f6c] Apache Hive-2.3.0 \u5feb\u901f\u642d\u5efa\u4e0e\u4f7f\u7528"}]},{"@type":"Article","@id":"http:\/\/weizn.net\/?p=233#article","isPartOf":{"@id":"http:\/\/weizn.net\/?p=233#webpage"},"author":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"headline":"[\u8f6c] Apache Hive-2.3.0 \u5feb\u901f\u642d\u5efa\u4e0e\u4f7f\u7528","datePublished":"2018-03-21T16:28:41+00:00","dateModified":"2018-03-21T16:28:41+00:00","mainEntityOfPage":{"@id":"http:\/\/weizn.net\/?p=233#webpage"},"wordCount":147,"commentCount":0,"publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"image":{"@id":"http:\/\/weizn.net\/?p=233#primaryimage"},"thumbnailUrl":"http:\/\/weizn.net\/wp-content\/uploads\/2020\/10\/apache_hive_hero_final-01.jpg","articleSection":["\u6570\u636e\u5206\u6790"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/weizn.net\/?p=233#respond"]}]},{"@type":["Person","Organization"],"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264","name":"zinan","logo":{"@id":"http:\/\/weizn.net\/#personlogo"}}]}},"_links":{"self":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=233"}],"version-history":[{"count":0,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/233\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/media\/569"}],"wp:attachment":[{"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=233"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}