老师我没给hive这个用户授权表的查询操作也可以查询
来源:4-2 权限管理(下)实操Hive的权限操作
Panda_io
2020-03-19
使用bigData用户创建表
[bigData@bigData sbin]
hive> create table bigdata_table(name string, id string)
> row format delimited
> fields terminated by ‘,’
> lines terminated by ‘\n’;
OK
Time taken: 1.281 seconds
hive> load data inpath ‘/test_data/in.txt’ into table in_table;
FAILED: SemanticException [Error 10001]: Line 1:48 Table not found 'in_table’
hive> load data inpath ‘/test_data/in.txt’ into table bigdata_table;
Loading data to table hive_test.bigdata_table
OK
Time taken: 2.234 seconds
hive> select * from bigdata_table;
OK
杜甫 201922000401
李白 201922000402
Time taken: 0.37 seconds, Fetched: 2 row(s)
hive>
切换到hive用户查询表
[hive@bigData bigData]$ hive
hive> select * from bigdata_table;
OK
杜甫 201922000401
李白 201922000402
略过了授权操作居然也可以,老师我的问题出在哪儿呀?
1回答
-
叁金
2020-03-22
hive默认是没有权限控制的。你这里是用了哪些权限控制呢?可以贴一下配置,说一下你现在的权限控制方案。
00
相似问题