[英]Authentication In Apache Hive
I have installed apache hive 13.1 in my redhat system. 我已经在我的redhat系统中安装了apache hive 13.1。
Hiveserver2 is installed and running and I have connected it through beeline via command below Hiveserver2已安装并正在运行,我已通过下面的命令通过beeline将其连接
!connect jdbc:hive2://redhat:10000 username password org.apache.hive.jdbc.HiveDriver
'username' and 'password' being default username and password respectively. “用户名”和“密码”分别是默认的用户名和密码。
Through beeline if I give query like SELECT * FROM TABLE1
, it is showing below error 通过beeline,如果我给出类似
SELECT * FROM TABLE1
查询,则显示以下错误
Error: Error while compiling statement: FAILED: RuntimeException Cannot make directory: hdfs://localhost:9000/tmp/hive-root/hive_2014-11-20_11-25-00_148_8959617153046923444-1 (state=42000,code=40000)
I think this error is due to the default username which I am using doesn't have permission to create a directory in HDFS. 我认为此错误是由于我使用的默认用户名没有在HDFS中创建目录的权限。
So, can anyone please help me to know, how to change the permission of a user and how to create a new user in hiveserver2? 因此,任何人都可以帮助我了解如何更改用户的权限以及如何在hiveserver2中创建新用户吗?
Please correct me if I am wrong somewhere. 如果我在某个地方不对,请纠正我。
We are running hiveserver2 on an AWS EMR cluster and haven't configured any additional authentication. 我们正在AWS EMR集群上运行hiveserver2,尚未配置任何其他身份验证。
We had the same error when we did not specify a username and password. 当我们没有指定用户名和密码时,我们会遇到同样的错误。 In our case, for AWS EMR without additional configuration we found connecting with username 'hadoop' with no password worked for us.
在我们的案例中,对于没有其他配置的AWS EMR,我们发现使用用户名“ hadoop”进行连接时没有密码可用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.