The specified database user/password combination is rejected: [ 08S01] Could not open client transpo

报错如下

The specified database user/password combination is rejected: [ 08S01] Could not open client transport with JDBC Uri: jdbc:hive2://hadoop102:10000: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: root is not allowed to impersonate atguigu org.apache.hadoop.ipc. RemoteException:User: root is not allowed to impersonate atguigu

意思是:root不允许模拟atguigu

错误配置如下



    hadoop.proxyuser.atguigu.hosts
    *




    hadoop.proxyuser.atguigu.groups
    *




    hadoop.proxyuser.atguigu.users
    *

hadoop修改配置文件core-site.xml,然后记得分发三台机器

[atguigu@hadoop102 ~]$ cd $HADOOP_HOME/etc/hadoop

[atguigu@hadoop102 hadoop]$ vim core-site.xml

修改如下配置:

全部改成root



    hadoop.proxyuser.root.hosts
    *




    hadoop.proxyuser.root.groups
    *




    hadoop.proxyuser.root.users
    *

解决方案: 查看core-site.xml,将配置名改成和该配置一样的就可以

The specified database user/password combination is rejected: [ 08S01] Could not open client transpo_第1张图片

你可能感兴趣的:(大数据,数据库,hive)