如何为多个用户使用配置单元 [英] How to use hive with multiple users

查看:149
本文介绍了如何为多个用户使用配置单元的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



现在我希望每个用户都有一个私有的元数据。



示例:

用户呼叫显示表:a1,a2,a3 ...



用户b调用show table:b1,b2,b3 ...



当然,当用户运行查询时,他们无法访问其他用户的表。 b
$ b

谢谢。

解决方案


对于新用户,Hive的Metastore是
,配置为将元数据本地存储在嵌入式Apache Derby
数据库中。不幸的是,这种配置只允许单个用户
一次访问Metastore。 Cloudera强烈建议用户使用
来使用MySQL数据库。本节介绍如何将
配置为使用远程MySQL数据库的Hive,该数据库允许Hive以
支持多个用户。有关
的其他信息,请参阅 Hive Metastore 文档。


有关详细信息,请参阅标题为'配置Hive Metastore'的部分 在这里


I have several users use the same hive.

Now i want each user to have a private metadata in hive.

example:

user a call show table : a1 , a2, a3 ...

user b call show table : b1 , b2 ,b3 ...

Of course when user run query they can not access table of other user.

thanks.

解决方案

In order to make setup easy for new users, Hive's Metastore is configured to store metadata locally in an embedded Apache Derby database. Unfortunately, this configuration only allows a single user to access the Metastore at a time. Cloudera strongly encourages users to use a MySQL database instead. This section describes how to configure Hive to use a remote MySQL database, which allows Hive to support multiple users. See the Hive Metastore documentation for additional information.

For more details see the part with heading 'Configuring the Hive Metastore' here.

这篇关于如何为多个用户使用配置单元的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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