hive和Kerberos对接异常

在启动Hive-server2进程的时候报错 

org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User hive/cloudtest-2.example.com@CLOUDERA (auth:KERBEROS) is not authorized for protocol interface org.apache.hadoop.hdfs.protocol.ClientProtocol, expected client Kerberos principal is null

该异常说明 hive/cloudtest-2.example.com@CLOUDERA这个principal 没有权限访问。需要给它配置访问hadoop的权限。


需要在hdfs的配置的服务范围/严重性   授权的用户中加入 hive, 授权的组中加入hive.



到此。Kerberos和cdh的集成算是彻底明白了。



 

来自为知笔记(Wiz)



你可能感兴趣的:(hive和Kerberos对接异常)