欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

hive beeline连接User: root is not allowed to impersonate anonymous

程序员文章站 2022-03-23 12:54:07
...

分析 : 访问权限问题
解决 :在hadoop的conf目录下的配置文件core-site.xml中加入如下配置

<property>
  <name>hadoop.proxyuser.root.hosts</name>
  <value>*</value>
 </property>
 <property>
  <name>hadoop.proxyuser.root.groups</name>
  <value>*</value>
</property>

重新启动hadoop

  • ./stop-all.sh
    hive beeline连接User: root is not allowed to impersonate anonymous
  • ./bin/hdfs namenode -format
    hive beeline连接User: root is not allowed to impersonate anonymous
  • 启动NameNode
    hive beeline连接User: root is not allowed to impersonate anonymous
  • 启动datanode
    hive beeline连接User: root is not allowed to impersonate anonymous
  • 启动hdfs
    hive beeline连接User: root is not allowed to impersonate anonymous
  • 重新启动hiveserver2
    hive beeline连接User: root is not allowed to impersonate anonymous
  • beeline -u jdbc:hive2://127.0.0.1:10000 直接连
    hive beeline连接User: root is not allowed to impersonate anonymous
相关标签: debug