在Hive中从Metastore查询表抛出错误

时间:2019-07-31 07:39:58

标签: hive hiveql

当我尝试在配置单元中查询metastore时,我遇到错误。

hive> use mydb;
OK
Time taken: 0.052 seconds
hive> select * from DBS;
FAILED: SemanticException [Error 10001]: Line 1:14 Table not found 'DBS'
hive> select * from TBLS;
FAILED: SemanticException [Error 10001]: Line 1:14 Table not found 'TBLS'

我正在使用hadoop版本:Hadoop 2.7.3.2.6.2.3-1

这是访问权限问题吗?

请分享您的建议

1 个答案:

答案 0 :(得分:0)

您可以尝试一下。

select * from hive.TBLS;

关于您的评论问题:

use hive;
show tables;

此外,您还可以找到有用的this link