HIVE2 Error: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteExc
2016-12-19 17:00
701 查看
LF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
Connecting to jdbc:hive2://localhost:10000/default
Enter username for jdbc:hive2://localhost:10000/default: root
Enter password for jdbc:hive2://localhost:10000/default: ******
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>etc>hadoop>core-site.xml 中添加如下部分,重启服务即可:
<property>
<name>hadoop.proxyuser.root.hosts</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.root.groups</name>
<value>*</value>
</property>
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
Connecting to jdbc:hive2://localhost:10000/default
Enter username for jdbc:hive2://localhost:10000/default: root
Enter password for jdbc:hive2://localhost:10000/default: ******
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>etc>hadoop>core-site.xml 中添加如下部分,重启服务即可:
<property>
<name>hadoop.proxyuser.root.hosts</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.root.groups</name>
<value>*</value>
</property>
相关文章推荐
- Kafka文件存储机制那些事
- CentOS 7 + Apache 2.4 + Flask 0.11 + Python 3.4 + Virtualenv配置过程
- Apache JMeter使用
- apache kafka系列之在zookeeper中存储结构
- 配置apache虚拟域名
- Linux Apache2.2配置CGI
- 【Apache RocketMQ】RocketMQ捐赠给Apache那些鲜为人知的故事-转自阿里中间件
- org.apache.log4j.Logger详解
- CentOS 6下源码安装LAMP(Linux+Apache+Mysql+Php)环境
- org.apache.log4j.Logger 详解
- apache配置虚拟主机时需要注意到几个小细节
- 疑难杂症(4) -- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- 禁用Apache的Options和Trace方法
- APACHE 禁止指定IP或IP段访问网站
- PHP探针-服务器平台APACHE专用版
- 一张图看懂开源许可协议,开源许可证GPL、BSD、MIT、Mozilla、Apache和LGPL的区别
- apache日志直接存库
- Internal Server Error<br>The server encountered an internal e
- linux服务器-LAMP安装配置1-依赖包、apache安装
- ofbiz 电商项目 apache顶级