美文网首页
beeline 连接报错

beeline 连接报错

作者: 杰杰微电 | 来源:发表于2019-04-30 21:38 被阅读0次

    环境说明: 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 解决

    相关文章

      网友评论

          本文标题:beeline 连接报错

          本文链接:https://www.haomeiwen.com/subject/cysbnqtx.html