简体   繁体   English

使用配置单元作为元存储库时无法查看数据库

[英]unable to see the databases when using the hive as a metastore

In order to access the hive through the Apache Drill, I have started the metastore as a service. 为了通过Apache Drill访问配置单元,我已将metastore作为服务启动。

In order to use it as a metastore in the hive-site.xml, I have set the hive.metastore.uris parameter to thrift://localhost:9083. 为了将其用作hive-site.xml中的元存储,我将hive.metastore.uris参数设置为thrift:// localhost:9083。

After the metastore service is created, I am trying to view the databases.It shows only two databases instead of 4 which are created before starting the hive as a service. 创建metastore服务后,我试图查看数据库,它仅显示两个数据库,而不是在启动配置单元作为服务之前创建的4个数据库。

Also few tables which are created before are not shown. 也没有显示之前创建的几个表。

When i browsed through the folder /hive/user/warehouse/, I could see all the tables and all the databases. 当我浏览文件夹/ hive / user / warehouse /时,我可以看到所有表和所有数据库。

When i stop the metastore as a service and check it shows all the 4 databases.I am not sure what is going behind. 当我停止元存储作为服务并检查它显示所有4个数据库时,我不确定会发生什么情况。

Can anyone please help me, if you face the same and what needs to be done? 如果您面对同样的问题并且需要做什么,请问有人可以帮助我吗?

I am using Apache Derby as a backend database. 我正在使用Apache Derby作为后端数据库。

同一台Linux机器上安装了两个不同版本的Hive,因此我遇到了这个问题,删除了我不使用的版本,然后问题解决了,这是我的错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM