beeline启动时,错误 User: root is not allowed to impersonate root

错误:

beeline>!connect jdbc:hive2://192.168.33.01:10000 root root
Connecting to jdbc:hive2://192.168.33.01:10000
Error: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: root is not allowed to impersonate root (state=,code=0)

解决办法:

在hadoop的core-site.xml中添加以下内容

  1. #(虚拟机的登录用户)“root”可以代理所有主机上的所有用户
  2. <property>
  3. <name>hadoop.proxyuser.root.hosts</name>
  4. <value>*</value>
  5. </property>
  6. <property>
  7. <name>hadoop.proxyuser.root.groups</name>
  8. <value>*</value>
  9. </property>

原文地址:https://www.cnblogs.com/liulala2017/p/11461260.html

时间: 2024-10-11 05:18:35

beeline启动时,错误 User: root is not allowed to impersonate root的相关文章

beeline连接hiveserver2报错:User: root is not allowed to impersonate root

在hadoop的配置文件core-site.xml中添加如下属性:<property>        <name>hadoop.proxyuser.root.hosts</name>        <value>*</value></property><property>        <name>hadoop.proxyuser.root.groups</name>        <valu

如何解决apache启动时错误:Could not reliably determine the server&#39;s fully qualified domain name

启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name [[email protected] httpd-2.2.4]# /usr/local/apache/bin/apachectl start httpd: Could not reliably determine the server's fully qualified domain name, using 127.0

Hive JDBC:java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: root is not allowed to impersonate anonymous

今天使用JDBC来操作Hive时,首先启动了hive远程服务模式:hiveserver2 &(表示后台运行),然后到eclipse中运行程序时出现错误: java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://192.168.182.11:10000/default: Failed to open new session: java.lang.RuntimeException: org.

hiveserver2连接报错: User: root is not allowed to impersonate anonymous (state=08S01,code=0)

欢迎关注大数据和人工智能技术文章发布的微信公众号:清研学堂,在这里你可以学到夜白(作者笔名)精心整理的笔记,让我们每天进步一点点,让优秀成为一种习惯! 使用HiveServer2运行时,启动好HiveServer后运行 private static String url = "jdbc:hive2://192.168.213.132:10000/default"; 连接hiveserver2时 出现 java.lang.RuntimeException: org.apache.hado

User: root is not allowed to impersonate admin

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

VMware ESXi 启动时提示引导错误:不是VMware引导槽。找不到管理程序(bank6 not a vmware boot bank no hypervisor found)

VMware ESXi 启动时提示引导错误: bank6 not a vmware boot bank no hypervisor found 大概中文意思是:不是VMware引导槽.找不到管理程序. 网上看到https://communities.vmware.com/thread/429698 有网友解答说,删除分区的字符会导致GPT修改(大意) 才想起重启前,在PE下转移硬盘数据,因为ESXi的分区比较多,看着碍眼手贱删掉了2个分局的字符.... 再看https://kb.vmware.c

xampp启动时显示的错误

xampp启动时显示的错误为: 9:52:41  [Apache]  Attempting to start Apache app... 9:52:41  [Apache]  Status change detected: running9:52:42  [Apache] Status change detected: stopped9:52:42  [Apache] Error: Apache shutdown unexpectedly.9:52:42  [Apache] This may b

http启动时提示如下错误Permission denied

apache配置了多端口,启动时提示如下错误,原因是selinux开启导致 [[email protected] conf]# /etc/init.d/httpd start Starting httpd: [Tue Dec 20 11:34:44 2016] [warn] NameVirtualHost *:80 has no VirtualHosts (13)Permission denied: make_sock: could not bind to address [::]:8001 (

WinXP SP3 下安装 Android SDK,模拟器启动时出现错误...

============问题描述============ WinXP SP3 下安装 Android SDK,模拟器启动时出现错误. 安装了两个版本的 Android SDK,都是一样的. installer_r23.0.2-windows.exe 和 installer_r22.6-windows.exe 请问怎么可以解决这个问题?多谢!!! ============解决方案1============ 这个自带的模拟器太慢,下一个bluestakes或genymotion吧 =========