HIVE2 :beeline连接设置用户名和密码注意问题
来源:互联网 发布:tinyumbrella mac版 编辑:程序博客网 时间:2024/05/21 19:41
beeline connect有几种方式,见Hive-site.xml,缺省为NONE。
<property>
<name>hive.server2.authentication</name>
<value>NONE</value>
<description>
Expects one of [nosasl, none, ldap, kerberos, pam, custom].
Client authentication types.
NONE: no authentication check
LDAP: LDAP/AD based authentication
KERBEROS: Kerberos/GSSAPI authentication
CUSTOM: Custom authentication provider
(Use with property hive.server2.custom.authentication.class)
PAM: Pluggable authentication module
NOSASL: Raw transport
</description>
</property>
设置相应用户名和密码
<name>hive.server2.thrift.client.user</name>
<value>root</value>
<description>Username to use against thrift client</description>
</property>
<property>
<name>hive.server2.thrift.client.password</name>
<value>123456</value>
<description>Password to use against thrift client</description>
</property>
注意这里设置的用户要求对inode="/tmp/hive" 有执行权限,否则会出现下列问题:
Connecting to jdbc:hive2://localhost:10000/default
Enter username for jdbc:hive2://localhost:10000/default: hive
Enter password for jdbc:hive2://localhost:10000/default: **
Error: Failed to open new session: Java.lang.RuntimeException: org.apache.Hadoop.security.AccessControlException: Permission denied: user=hive, access=EXECUTE, inode="/tmp/hive":root:supergroup:drwxrwx---
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:319)
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkTraverse(FSPermissionChecker.java:259)
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:205)
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:190)
at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkPermission(FSDirectory.java:1698)
at org.apache.hadoop.hdfs.server.namenode.FSDirStatAndListingOp.getFileInfo(FSDirStatAndListingOp.java:108)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getFileInfo(FSNamesystem.java:3817)
at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.getFileInfo(NameNodeRpcServer.java:1005)
at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.getFileInfo(ClientNamenodeProtocolServerSideT
- HIVE2 :beeline连接设置用户名和密码注意问题
- HIVE2 :beeline连接设置用户名和密码注意问题
- Hive设置连接用户名和密码
- 一步一步安装hive2,beeline
- Hive2 beeline 使用方法
- tortoiseGit 连接gitlab 设置保存用户名和密码
- python3 连接SQLserver2014(包括用户名和密码设置)
- 首次连接oracle数据库的用户名和密码问题
- FTP 设置用户名和密码
- CVS 设置用户名和密码
- ftp设置用户名和密码
- mogodb 设置用户名和密码
- MySQL 用户名和密码设置
- git设置http连接用户名密码
- 用户名和密码验证问题
- tomcat 用户名和密码问题
- MySQL用户名和密码问题
- Tomcat用户名和密码问题
- Js递归方法解决兔子问题
- HDU 2489 Minimal Ratio Tree(dfs+最小生成树-Prim)
- 最小均方误差
- 【南阳 oj】 8--一种排序(sort排序)
- Spring boot学习之spring-data-jpa的使用(二)
- HIVE2 :beeline连接设置用户名和密码注意问题
- Chip-seq数据寻找Indel
- 如果搭建ThinkPHP的环境
- 常用Vim命令及快捷键
- PAT 1068万绿丛中一点红
- 【shell】结构控制-判断语句
- Js递归方法解决猴子吃桃问题
- 最小点覆盖集之例题
- 查找一个字符串中第一个只出现两/一次的字符