用户没有权限操作hadoop User: wu is not allowed to impersonate wu (state=08S01,code=0)

Error: Could not open client transport with JDBC Uri: jdbc:hive2://ubuntu:10000: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: wu is not allowed to impersonate wu (state=08S01,code=0)

报错上面所示,当前用户没有权限

core-site.xml:

对hadoop配置文件添加:

     
         hadoop.proxyuser.centos.groups
         *
     

     
         hadoop.proxyuser.centos.hosts
         *
     

其中centos是自己的用户,需要就行修改

重启hadoop服务

你可能感兴趣的:(hadoop,分布式)