基于存储层面的hive metastore server的权限认证
2015-10-16 09:24
537 查看
原文wiki:https://cwiki.apache.org/confluence/display/Hive/Storage+Based+Authorization+in+the+Metastore+Server
hive0.14以及以上
基于存储层面的hive metastore server的权限认证
该认证基于hdfs上的对应目录的权限来认证对元数据的操作。基本原理是如果该表所在的目录此时hive的用户没有写权限,则不能删除hive表的元数据。
启用认证之后drop table 表时就会报错,这样就可以保证恶意用户不能直接删除元数据。
set h
set hive.security.metastore.authenticator.manager=
set
hive0.14以及以上
基于存储层面的hive metastore server的权限认证
该认证基于hdfs上的对应目录的权限来认证对元数据的操作。基本原理是如果该表所在的目录此时hive的用户没有写权限,则不能删除hive表的元数据。
启用认证之后drop table 表时就会报错,这样就可以保证恶意用户不能直接删除元数据。
set h
ive.metastore.pre.event.listeners=
org.apache.hadoop.hive.ql.security.authorization.AuthorizationPreEventListener;
set hive.security.metastore.authorization.manager=
org.apache.hadoop.hive.ql.security.authorization.StorageBasedAuthorizationProvider;
set hive.security.metastore.authenticator.manager=
org.apache.hadoop.hive.ql.security.HadoopDefaultMetastoreAuthenticator;
set
hive.security.metastore.authorization.auth.reads=true;
相关文章推荐
- Java常见面试题
- Linux下使用CPAN进行Perl模块的安装
- JS基础知识梳理--setTimeout()&setInterval()
- Cocos2d中update与fixedUpdate的区别(一)
- 第六周项目5-后缀表达式
- Cocos2d中update与fixedUpdate的区别(一)
- Cocos2d中update与fixedUpdate的区别(一)
- Python3利用PyMySql连接MySQL数据库
- 推荐一些C#相关的网站、资源和书籍
- 从0开始学Java——JSP&Servlet——Tomcat和Apache的区别
- 数据源加密-JDBC调用方式加密示例
- Cg two-sided per-pixel lighting
- FusionCharts 3.2 使用说明 以及 swf
- C语言的指针的基本语法
- C语言的指针的基本语法
- C语言的指针的基本语法
- Servlet API——ServletContext接口的简述
- C语言的指针的基本语法
- centos服务器全新安装php,apache环境
- 请运行TestStaticInitializeBlock.java示例,观察输出结果,总结出“静态初始化块的执行顺序”。