hive多用户模式

hive 多用户模式安装

  • hive多用户模式分开服务端和客户端

  • hive单用户模式参考http://blog.csdn.net/qq_33127597/article/details/76210417

  • 服务端配置如下

 <configuration>
    <property>
         <name>hive.metastore.warehouse.dirname>
         <value>/opt/hive/warehousevalue>
     property>
     <property>
         <name>javax.jdo.option.ConnectionURLname>
         <value>jdbc:mysql://192.168.137.10:3306/hive?characterEncoding=UTF-8value>
     property>
     <property>
         <name>javax.jdo.option.ConnectionDriverNamename>
         <value>com.mysql.jdbc.Drivervalue>
     property>
     <property>
         <name>javax.jdo.option.ConnectionUserNamename>
         <value>hivevalue>
     property>
     <property>
         <name>javax.jdo.option.ConnectionPasswordname>
         <value>mysqlvalue>
     property>
     <property>
     <name>hive.server2.transport.modename>
     <value>binaryvalue>
     <description>
       Expects one of [binary, http].
       Transport mode of HiveServer2.
     description>
    property>
 configuration>
  • 客户端
 <property>
        <name>hive.metastore.warehouse.dirname>
        <value>/opt/hive/warehousevalue>
  property>
  <property>
        <name>hive.metastore.localname>
        <value>falsevalue>
  property>
        <value>thrift://slave1:9083value>
        <description>thrift URIdescription>
  property>
  • 启动hive服务端程序
hive --service metastore
客户端直接用hive打开即可
  • hive2 beeline启动方式
服务端启动  hiveserver2
客户端启动 beeline
!connect jdbc:hive2://192.168.137.101:10000 默认密码为none

你可能感兴趣的:(hive分布式)