如何让apache的蜂房处理多个客户端查询 [英] How to allow apache hive to handle multiple clients query

查看:113
本文介绍了如何让apache的蜂房处理多个客户端查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过从HBase的蜂巢创建的外部表。当有人在loged壳和部署一些疑问,没有人可以运行任何查询。当有人尝试运行它给以下错误quesry。

I have created an external table via hive from hbase. When someone loged in to shell and deploy some queries , no one else can run any query. when someone try to run a quesry it gives following error.

失败:错误元数据:了java.lang.RuntimeException:无法实例org.apache.hadoop.hive.metastore.HiveMetaStoreClient
失败:执行错误,返回code 1从org.apache.hadoop.hive.ql.exec.DDLTask

FAILED: Error in metadata: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask

在第一个shell退出,然后查询可以轻松运行。因此,这意味着我的配置单元不能处理多个客户端。如何使它能够处理多个客户端

when first shell exits then queries can be run easily. So it means that my hive a cannot handle multiple clients. How to enables it to handle multiple clients

推荐答案

如果您还没有配置您的蜂巢Metastore,它不可能为多个用户访问服务器配置单元

If you have not configured your Hive Metastore, its not possible for more than one user to access the Hive Server.

嵌入式Metastore 嵌入式metastore主要用于单元测试。只有一个进程可以同时连接到metastore,所以它
  是不是一个真正的实际的解决方案,而且可以很好地用于单元测试

Embedded Metastore An embedded metastore is mainly used for unit tests. Only one process can connect to the metastore at a time, so it is not really a practical solution but works well for unit tests

勾选此<一个href=\"https://cwiki.apache.org/confluence/display/Hive/AdminManual+MetastoreAdmin#AdminManualMetastoreAdmin-LocalMetastore\"相对=nofollow>链接以获取更多信息。

Check this link for more information.

这篇关于如何让apache的蜂房处理多个客户端查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆