hive权限控制

简介: <property> <name>hive.server2.authentication</name> <value>CUSTOM</value> </property> <property> <name>hive.
<property>
<name>hive.server2.authentication</name>
<value>CUSTOM</value>
</property>
<property>
<name>hive.server2.custom.authentication.class</name>
<value>com.hiveserver.auth.CustomHiveServerAuth</value>
</property>
<property>
<name>hive.server2.custom.authentication.file</name>
<value>/home/soft/hive/conf/hiveserver2.users.conf</value>
</property>



<property>
  <name>hive.metastore.local</name>
  <value>false</value>
</property>
<property>
    <name>hive.metastore.uris</name>
    <value>thrift://spark01:9083</value>
    <description>Thrift URI for the remote metastore. Used by metastore client to connect to remote metastore.</description>
  </property>
<property>
    <name>hive.security.authenticator.manager</name>
    <value>org.apache.hadoop.hive.ql.security.SessionStateUserAuthenticator</value>
    <description>
      hive client authenticator manager class name. The user defined authenticator should implement 
      interface org.apache.hadoop.hive.ql.security.HiveAuthenticationProvider.
    </description>
  </property>
<property>
    <name>hive.security.authorization.enabled</name>
    <value>true</value>
    <description>enable or disable the Hive client authorization</description>
  </property>
<property>
    <name>hive.security.authorization.manager</name>
  <value>org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory</value>
    <description>
      The Hive client authorization manager class name. The user defined authorization class should implement 
      interface org.apache.hadoop.hive.ql.security.authorization.HiveAuthorizationProvider.
    </description>
  </property>
<property>
    <name>hive.users.in.admin.role</name>
    <value>root</value>
    <description>
      Comma separated list of users who are in admin role for bootstrapping.
      More users can be added in ADMIN role later.
    </description>
  </property>
<property>
    <name>hive.server2.enable.doAs</name>
    <value>false</value>
    <description>
      Setting this property to true will have HiveServer2 execute
      Hive operations as the user making the calls to it.
    </description>
  </property>

<property>
    <name>hive.server2.thrift.bind.host</name>
    <value>spark01</value>
    <description>Bind host on which to run the HiveServer2 Thrift service.</description>
  </property>

  <property>
    <name>hive.server2.thrift.port</name>
    <value>10000</value>
    <description>Port number of HiveServer2 Thrift interface when hive.server2.transport.mode is 'binary'.</description>
  </property>

  <property>
    <name>hive.server2.thrift.http.port</name>
    <value>10001</value>
    <description>Port number of HiveServer2 Thrift interface when hive.server2.transport.mode is 'http'.</description>
  </property>

hive --service metastore &
hive --service hiveserver2 &

!connect jdbc:hive2://172.16.0.71:10000

create database tycybgongshang;
describe database tycbygongshang;
create database tycybzhuanli;
set role admin;

目录
相关文章
|
5月前
|
SQL 存储 分布式计算
Hive的简单操作
Hive的简单操作
29 0
|
8月前
|
SQL 存储 数据库
Hive权限管理应用
Hive权限管理应用
222 1
|
10月前
|
SQL 分布式计算 Hadoop
|
SQL 存储 分布式计算
【Hive】(十七)Hive 优化策略1
【Hive】(十七)Hive 优化策略1
210 0
【Hive】(十七)Hive 优化策略1
|
SQL 存储 分布式计算
【Hive】(十七)Hive 优化策略2
【Hive】(十七)Hive 优化策略2
227 0
【Hive】(十七)Hive 优化策略2
|
SQL 存储 分布式计算
Hive高级应用(一)
Apache Hive是一个构建在hadoop基础设施之上的数据仓库。通过Hive可以使用HQL语言查询存放在HDFS上的数据。HQL是一种类SQL语言,这种语言最终被转化为MapReduce. 虽然Hive提供了SQL查询功能,但是Hive不能够进行交互查询–因为它只能够在Haoop上批量的执行Hadoop。
Hive高级应用(一)
|
SQL Java 数据库连接
|
SQL 并行计算 数据挖掘
|
SQL 存储 数据库
Hive简介、什么是Hive、为什么使用Hive、Hive的特点、Hive架构图、Hive基本组成、Hive与Hadoop的关系、Hive与传统数据库对比、Hive数据存储(来自学习资料)
1.1 Hive简介 1.1.1   什么是Hive Hive是基于Hadoop的一个数据仓库工具,可以将结构化的数据文件映射为一张数据库表,并提供类SQL查询功能。 1.1.2   为什么使用Hive Ø  直接使用hadoop所面临的问题 人员学习成本太高 项目周期要求太短 MapReduce实现复杂查询逻辑开发难度太大   Ø  为什么要使用Hive 操作接口采用类SQ
26060 0
|
SQL 存储 缓存
CDP中的Hive3系列之管理Hive3
在了解了CDP中提供的Hive的特性及如何使用Hive3,本章节将就如何管理Hive3提供说明。
1259 0
CDP中的Hive3系列之管理Hive3

热门文章

最新文章