正常在hive库即hive命令行中删除一张表,hdfs上也是同步的被删除的,但是这次发现在hive里手动建了一张表,然后使用drop table 表名后,hive库里的确没发现这张表了,但是HDFS上还是有。
我使用的建表建库语句:
create database test1 location 'hdfs://beh/user/test1/test1.db'; //创建库指定路径
use test1;
create table test1(id int);
删除表的语句:
drop table test1;
不是外部表,并且回收站中也没有该表被删除的信息。
经百度,说是由于Hive权限与HDFS权限分离导致的原因,即Hive权限管理比较弱,/user目录权限为700:
参考网址:https://cloud.tencent.com/info/dfa3e02544bec8e457628fa982e10434.html
但我看了一下,我自己的权限为755,是足够的: