环境说明: hdp2.6 集群开了 kerberos , beeline 连接 报错,
已经kinit 认证通过。klist 可以查看,还是连接报错
Unauthorized connection for super-user: hive/scnn02@HADOOP.COM from IP xx.xx.xx.xx
没开kerberos 的环境下,可能报错:
Unauthorized connection for super-user: ocdp from IP xx.xx.xx.xx
解决办法:
ambari, Services > HDFS > Configs.
Under the Advanced tab, navigate to the Custom core-site section.
Click Add Property…to add the following custom properties:
hadoop.proxyuser.ocdp.groups=*
hadoop.proxyuser.ocdp.hosts=*
------------------------------------------------------------------------------------------------------------------------------------------
看似权限不够,其实 hql 语句少写了个 hdfs, 补全路径即可。
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
HDP 2.6 集群用的是mariadb 5.5元数据库,当升级到 mysql 5.7.31 后, hive beeline 连接不上,提示数据库不存在,如下图所示:
JDBC 驱动用的版本太低 mysql-connector-java 5.1.25 , 换成5.1.37 解决
网友评论