beeline connect User: root is not allowed to impersonate hive (state=08S01,code=0)

环境介绍

  1. 启动了hiveserver2服务接口
    beeline connect User: root is not allowed to impersonate hive (state=08S01,code=0)服务本身阻塞
  2. 启动beeline链接服务
    beeline connect User: root is not allowed to impersonate hive (state=08S01,code=0)
  3. 报错提示
    beeline connect User: root is not allowed to impersonate hive (state=08S01,code=0)

解决办法

修改hadoop core-site.xml

  1. stop-dfs.sh,终止集群
  2. 修改core-site.xml文件,图中root就是上面报错处提示的root用户,
    beeline connect User: root is not allowed to impersonate hive (state=08S01,code=0)
  3. start-dfs.sh 重启hdfs
  4. 再次连接
    beeline connect User: root is not allowed to impersonate hive (state=08S01,code=0)