hive2中使用beeline:Required field 'serverProtocolVersion' is unset!
来源:互联网 发布:js 数值精度 编辑:程序博客网 时间:2024/06/10 00:15
hive2中使用beeline:
beeline -u jdbc:hive2://localhost:10000
启动报如下错误:
Required field 'serverProtocolVersion' is unset!
User: hadoop is not allowed to impersonate anonymous
解决方法:
hadoop的core-site.xml中添加如下配置:
<!--
Required field 'serverProtocolVersion' is unset!User: hadoop is not allowed to impersonate anonymous
-->
<property>
<name>hadoop.proxyuser.hadoop.groups</name>
<value>hadoop</value>
<description>Allow the superuser oozie to impersonate any members of the group group1 and group2</description>
</property>
<property>
<name>hadoop.proxyuser.hadoop.hosts</name>
<value>192.168.127.200,127.0.0.1,localhost</value>
<description>The superuser can connect only from host1 and host2 to impersonate a user</description>
</property>
然后使用如下命令启动:
beeline -u jdbc:hive2://localhost:10000 -n hadoop -p hadoop
阅读全文
0 0
- hive2中使用beeline:Required field 'serverProtocolVersion' is unset!
- 解决java使用jdbc连接hive2出现Required field 'client_protocol' is unset! Struct:TOpenSessionReq
- Required field 'sessionHandle is unset !’
- Java 连接hive2 server 通过jdbc 出现了问题 Required field 'client_protocol' is unset! Struct:TOpenSessionReq
- Hive学习笔记 --- Required field 'sessionHandle' is unset! Struct:TExecuteStatementReq(sessionHan
- org.apache.thrift.protocol.TProtocolException: Required field 'sessionHandle' is unset! Struct:TExec
- 一步一步安装hive2,beeline
- Hive2 beeline 使用方法
- beeline 使用
- required field
- HIVE2 :beeline连接设置用户名和密码注意问题
- HIVE2 :beeline连接设置用户名和密码注意问题
- Hive:使用beeline连接和在eclispe中连接
- Hive Beeline使用
- Hive Beeline使用
- Hive Beeline HiveServer2使用
- hiveserver2及beeline使用
- thriftserver&beeline的使用
- Dynamic RNN
- 算法一之简单选择排序
- 算法二之树形选择排序
- 算法三之堆排序
- 【1701H1】【穆晨】【171126】连续第四十七天总结
- hive2中使用beeline:Required field 'serverProtocolVersion' is unset!
- 算法四之冒泡排序
- 2017noip Day2 T2 宝藏
- SQL--当一张表的两个外键指向同一主键
- jQuery基础总结(四)
- 算法五之快速排序
- 算法六之直接插入排序
- Oracle入门(一)之登陆操作数据库
- Oracle入门(二)之SQL