{"id":47543,"date":"2023-12-11T15:12:10","date_gmt":"2023-12-11T07:12:10","guid":{"rendered":"https:\/\/wx.kaifamiao.info\/?p=47543"},"modified":"2023-12-11T15:12:10","modified_gmt":"2023-12-11T07:12:10","slug":"hive%e6%9c%89%e5%93%aa%e4%ba%9b%e6%96%b9%e5%bc%8f%e4%bf%9d%e5%ad%98%e5%85%83%e6%95%b0%e6%8d%ae%ef%bc%8c%e5%90%84%e6%9c%89%e5%93%aa%e4%ba%9b%e7%89%b9%e7%82%b9%ef%bc%9f-4","status":"publish","type":"post","link":"http:\/\/wx.kaifamiao.info\/index.php\/2023\/12\/11\/hive%e6%9c%89%e5%93%aa%e4%ba%9b%e6%96%b9%e5%bc%8f%e4%bf%9d%e5%ad%98%e5%85%83%e6%95%b0%e6%8d%ae%ef%bc%8c%e5%90%84%e6%9c%89%e5%93%aa%e4%ba%9b%e7%89%b9%e7%82%b9%ef%bc%9f-4\/","title":{"rendered":"hive\u6709\u54ea\u4e9b\u65b9\u5f0f\u4fdd\u5b58\u5143\u6570\u636e\uff0c\u5404\u6709\u54ea\u4e9b\u7279\u70b9\uff1f"},"content":{"rendered":"<p>&#8220;`&#8221;                    <strong>1.\u5185\u5d4cDerby\u6570\u636e\u5e93\u5b58\u50a8<\/strong><\/p>\n<p>&lt;pre&gt;&lt;code&gt;&#8211;\u8fd9\u4e2a\u662fhive\u9ed8\u8ba4\u81ea\u5e26\u7684\u5185\u5d4c\u6570\u636e\u5e93\uff0c\u7528\u6765\u50a8\u5b58\u5143\u6570\u636e\uff0c\u4f46\u8fd9\u4e2a\u5728\u914d\u7f6e\u4e86hiveserver2\u548cmetastore\u670d\u52a1\u540e\uff0c\u4e0d\u652f\u6301\u591a\u4e2a\u7528\u6237\u540c\u65f6\u767b\u5f55\uff0c\u4e0d\u65b9\u4fbf\u5bf9\u6570\u636e\u5e93\u7684\u5b89\u5168\u8bbf\u95ee<br \/>\n&lt;\/code&gt;&lt;\/pre&gt;<\/p>\n<p>&lt;strong&gt;2.multi user mode&lt;\/strong&gt;<\/p>\n<p>    &#8211;\u5728\u81ea\u5df1\u672c\u5730\u914d\u4e00\u4e2a\uff0cmysql\u7684\u6570\u636e\u5e93\u7528\u4f5c\uff0chive\u7684\u5143\u6570\u636e\u7684\u5b58\u50a8\u6570\u636e\u5e93\uff0c\u8fd9\u4e2a\u9700\u8981\u8981\u81ea\u5df1\u672c\u5730\u642d\u5efa\u4e00\u4e2amysql\u6570\u636e\u5e93\uff0c\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u521b\u5efa\u4e00\u4e2a\uff0chive\u81ea\u5df1\u7684\u5143\u6570\u636e\u5e93\uff0c\u4e5f\u662f\u6211\u4eec\u5b66\u4e60\u4e00\u822c\u4f1a\u7528\u7684\u65b9\u5f0f\uff0c\u914d\u7f6e\u4e00\u822c\u5982\u4e0b<\/p>\n<p>&lt;pre&gt;&lt;code&gt;&lt;property&gt;<br \/>\n jasbdaksbdaskbdoajsbdasbu<br \/>\n  &lt;name&gt;javax.jdo.option.ConnectionURL&lt;\/name&gt;<br \/>\n  &lt;value&gt;jdbc:mysql:\/\/hostname:3306\/hive?createDatabaseIfNotExist=true&lt;\/value&gt;<br \/>\n  &lt;description&gt;JDBC connect string for a JDBC metastore&lt;\/description&gt;<br \/>\n&lt;\/property&gt;<br \/>\n&lt;property&gt;<br \/>\n  &lt;name&gt;hive.metastore.uris&lt;\/name&gt;<br \/>\n    &lt;value&gt;thrift:\/\/hostname:9083&lt;\/value&gt;<br \/>\n      &lt;description&gt;IP address (or fully-qualified domain name) and port of the metastore host&lt;\/description&gt;<br \/>\n&lt;\/property&gt;<br \/>\n&lt;property&gt;<br \/>\n  &lt;name&gt;javax.jdo.option.ConnectionDriverName&lt;\/name&gt;<br \/>\n  &lt;value&gt;com.mysql.jdbc.Driver&lt;\/value&gt;<br \/>\n  &lt;description&gt;Driver class name for a JDBC metastore&lt;\/description&gt;<br \/>\n&lt;\/property&gt;<\/p>\n<p>&lt;property&gt;<br \/>\n  &lt;name&gt;javax.jdo.option.ConnectionUserName&lt;\/name&gt;<br \/>\n  &lt;value&gt;xxxx&lt;\/value&gt;<br \/>\n  &lt;description&gt;username to use against metastore database&lt;\/description&gt;<br \/>\n&lt;\/property&gt;<\/p>\n<p>&lt;property&gt;<br \/>\n  &lt;name&gt;javax.jdo.option.ConnectionPassword&lt;\/name&gt;<br \/>\n  &lt;value&gt;xxxx&lt;\/value&gt;<br \/>\n  &lt;description&gt;password to use against metastore database&lt;\/description&gt;<br \/>\n&lt;\/property&gt;<br \/>\n&lt;\/code&gt;&lt;\/pre&gt;<\/p>\n<p> &lt;strong&gt;3.remote server mode&lt;\/strong&gt;<\/p>\n<p>   \u4e00\u79cd\u5728\u8fdc\u7aef\u914d\u7f6e\u6570\u636e\u5e93\u670d\u52a1\u7684\u65b9\u5f0f\uff0c\u8fd9\u4e2a\u9700\u8981\u914d\u7f6emetastore\u670d\u52a1\uff0c\u901a\u8fc7\u5ba2\u6237\u7aef\u7684metastore\u670d\u52a1\u8bbf\u95ee\u670d\u52a1\u5668\u4e0a\u7684\u5143\u6570\u636e\u5e93\u8fbe\u5230\u8bbf\u95ee\u6570\u636e\u7684\u76ee\u7684<\/p>\n<p>&lt;pre&gt;&lt;code&gt;            &quot;&#8220;`<br \/>\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;`&#8221; 1.\u5185\u5d4cDerby\u6570\u636e\u5e93\u5b58\u50a8 &lt;pre&gt;&lt;code&gt;&#038; [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-47543","post","type-post","status-publish","format-standard","hentry","category-c"],"_links":{"self":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/47543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/comments?post=47543"}],"version-history":[{"count":1,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/47543\/revisions"}],"predecessor-version":[{"id":47544,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/47543\/revisions\/47544"}],"wp:attachment":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/media?parent=47543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/categories?post=47543"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/tags?post=47543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}