You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by 王鹏飞 <wp...@gmail.com> on 2015/01/03 06:02:53 UTC

Beeline connect hiveserver2 problem

  I use command "!connect jdbc:hive2://10.1.65.10:10000" to connect
hiveserver2 and it occurred some problem as following:


      15/01/03 12:27:32 [main]: ERROR jdbc.HiveConnection: Error opening
session
org.apache.thrift.TApplicationException: Required field 'client_protocol'
is unset! Struct:TOpenSessionReq(client_protocol:null,
configuration:{use:database=default})



     Error: Could not establish connection to jdbc:hive2://10.1.65.10:10000:
Required field 'client_protocol' is unset!
Struct:TOpenSessionReq(client_protocol:null,
configuration:{use:database=default}) (state=08S01,code=0)


    I really don't know how to handle this.

答复: Beeline connect hiveserver2 problem

Posted by "ericni.ni" <er...@vipshop.com>.
Hi ,wpf:
Please look at the hiveserver log  and refer to  the issue:
https://issues.apache.org/jira/browse/HIVE-6050

发件人: 王鹏飞 [mailto:wpf5511@gmail.com]
发送时间: 2015年1月3日 13:03
收件人: user@hive.apache.org
主题: Beeline connect hiveserver2 problem

  I use command "!connect jdbc:hive2://10.1.65.10:10000<http://10.1.65.10:10000/>" to connect hiveserver2 and it occurred some problem as following:


      15/01/03 12:27:32 [main]: ERROR jdbc.HiveConnection: Error opening session
org.apache.thrift.TApplicationException: Required field 'client_protocol' is unset! Struct:TOpenSessionReq(client_protocol:null, configuration:{use:database=default})



     Error: Could not establish connection to jdbc:hive2://10.1.65.10:10000<http://10.1.65.10:10000/>: Required field 'client_protocol' is unset! Struct:TOpenSessionReq(client_protocol:null, configuration:{use:database=default}) (state=08S01,code=0)

    I really don't know how to handle this.
本电子邮件可能为保密文件。如果阁下非电子邮件所指定之收件人,谨请立即通知本人。敬请阁下不要使用、保存、复印、打印、散布本电子邮件及其内容,或将其用于其他任何目的或向任何人披露。谢谢您的合作! This communication is intended only for the addressee(s) and may contain information that is privileged and confidential. You are hereby notified that, if you are not an intended recipient listed above, or an authorized employee or agent of an addressee of this communication responsible for delivering e-mail messages to an intended recipient, any dissemination, distribution or reproduction of this communication (including any attachments hereto) is strictly prohibited. If you have received this communication in error, please notify us immediately by a reply e-mail addressed to the sender and permanently delete the original e-mail communication and any attachments from all storage devices without making or otherwise retaining a copy.