解决hiveserver2 执行SQL 出现: User: infosec is not allowed to impersonate infosec

Exception: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: infosec is not allowed to impersonate infosec

解决方法:
       1. 删除hadoop-env.sh中HADOOP_USER_NAME的设置
       2. 创建用户infosec,sudo su infosec之后再启动hiveserver2

       3. unset HADOOP_USER_NAME

必须要用linux 实体用户启动

你可能感兴趣的:(hadoop学习,hadoop,hive,hiveserver2)