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 实体用户启动