c语言sscanf函数的用法是什么
479
2022-11-22
Beeline连接Hiveserver2错误
错误定位 最近给hadoop集群配置了kerberos认证,之后准备配置sentry进行权限管理。安装并启用sentry服务后需要在beeline进行Grant等授权操作。 Note that since Hive CLI does not work with HiveServer2, it cannot be used to configure Sentry permissions. 在启用sentry之前基本都用的Hive CLI,所以也没有注意到beeline的问题,在尝试进行连接后beeline出现错误:Error: Could not open client transport with JDBC Uri: jdbc:hive2://test-1:10000/default;: Peer indicated failure: Unsupported mechanism type PLAIN (state=08S01,code=0) 出现这个错误是因为连接时没有提供kerberos的principal信息应该如下进行连接: !connect jdbc:hive2://localhost:10000/default;principal=hive/HiveServer2Host@YOUR-REALM.COM但是仍出现错 误:Error: Could not establish connection to jdbc:hive2://test-1:10000/default;principal=hive/test- 1@JUNIORCHINA.COM: Required field 'client_protocol' is unset! Struct:TOpenSessionReq(client_protocol:null, configuration:{use:database=default}) (state=08S01,code=0) 针对这个错误,在网上搜到了这样的结果client的版本比hiveserver2的版本要高之后检查jar包CLASSPATH中/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/jars/hive-jdbc-0.13.1-cdh5.3.0.jar和lib中/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hive/lib/hive-jdbc-0.13.1-cdh5.3.0.jar的jar包版本都对无果。最后留意到登录beeline后显示 Beeline version 1.5.2 by Apache Hive beeline> 在其他节点登录beeline时显示 Beeline version 0.13.1-cdh5.3.0 by Apache Hive beeline> 终于确定问题所在解决 用其他节点客户端登录,或者更换beeline版本
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~