<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question while connecting to hiveserver2 from my java client I am getting this exception in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/while-connecting-to-hiveserver2-from-my-java-client-I-am/m-p/129639#M31311</link>
    <description>&lt;P&gt;org.apache.thrift.protocol.TProtocolException: Required field 'serverProtocolVersion' is unset! Struct:TOpenSessionResp(status:TStatus(statusCode:SUCCESS_STATUS), serverProtocolVersion:null, sessionHandle:TSessionHandle(), configuration:{})
at org.apache.hive.service.cli.thrift.TOpenSessionResp.validate(TOpenSessionResp.java:578)
at org.apache.hive.service.cli.thrift.TOpenSessionResp$TOpenSessionRespStandardScheme.read(TOpenSessionResp.java:676)
at org.apache.hive.service.cli.thrift.TOpenSessionResp$TOpenSessionRespStandardScheme.read(TOpenSessionResp.java:612)
at org.apache.hive.service.cli.thrift.TOpenSessionResp.read(TOpenSessionResp.java:520)
at org.apache.hive.service.cli.thrift.TCLIService$OpenSession_result$OpenSession_resultStandardScheme.read(TCLIService.java:2361)
at org.apache.hive.service.cli.thrift.TCLIService$OpenSession_result$OpenSession_resultStandardScheme.read(TCLIService.java:2346)
at org.apache.hive.service.cli.thrift.TCLIService$OpenSession_result.read(TCLIService.java:2293)
at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
at org.apache.hive.service.cli.thrift.TCLIService$Client.recv_OpenSession(TCLIService.java:160)
at org.apache.hive.service.cli.thrift.TCLIService$Client.OpenSession(TCLIService.java:147)&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jun 2016 17:16:21 GMT</pubDate>
    <dc:creator>sanjeev_verma82</dc:creator>
    <dc:date>2016-06-09T17:16:21Z</dc:date>
    <item>
      <title>while connecting to hiveserver2 from my java client I am getting this exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/while-connecting-to-hiveserver2-from-my-java-client-I-am/m-p/129639#M31311</link>
      <description>&lt;P&gt;org.apache.thrift.protocol.TProtocolException: Required field 'serverProtocolVersion' is unset! Struct:TOpenSessionResp(status:TStatus(statusCode:SUCCESS_STATUS), serverProtocolVersion:null, sessionHandle:TSessionHandle(), configuration:{})
at org.apache.hive.service.cli.thrift.TOpenSessionResp.validate(TOpenSessionResp.java:578)
at org.apache.hive.service.cli.thrift.TOpenSessionResp$TOpenSessionRespStandardScheme.read(TOpenSessionResp.java:676)
at org.apache.hive.service.cli.thrift.TOpenSessionResp$TOpenSessionRespStandardScheme.read(TOpenSessionResp.java:612)
at org.apache.hive.service.cli.thrift.TOpenSessionResp.read(TOpenSessionResp.java:520)
at org.apache.hive.service.cli.thrift.TCLIService$OpenSession_result$OpenSession_resultStandardScheme.read(TCLIService.java:2361)
at org.apache.hive.service.cli.thrift.TCLIService$OpenSession_result$OpenSession_resultStandardScheme.read(TCLIService.java:2346)
at org.apache.hive.service.cli.thrift.TCLIService$OpenSession_result.read(TCLIService.java:2293)
at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
at org.apache.hive.service.cli.thrift.TCLIService$Client.recv_OpenSession(TCLIService.java:160)
at org.apache.hive.service.cli.thrift.TCLIService$Client.OpenSession(TCLIService.java:147)&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 17:16:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/while-connecting-to-hiveserver2-from-my-java-client-I-am/m-p/129639#M31311</guid>
      <dc:creator>sanjeev_verma82</dc:creator>
      <dc:date>2016-06-09T17:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: while connecting to hiveserver2 from my java client I am getting this exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/while-connecting-to-hiveserver2-from-my-java-client-I-am/m-p/129640#M31312</link>
      <description>&lt;P&gt;what version of hiveserver2 you are running with? it seems that you are trying to connect with old version of thrift client to the newer version of hiveserver2. can you try to check the the libthrift api version of your hive-client vs hive-server.&lt;/P&gt;&lt;P&gt;if there is a mismatch then you are not able to connect with hive-server as it is known issue with hive.&lt;/P&gt;&lt;P&gt;see this&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/HIVE-6050" target="_blank"&gt;https://issues.apache.org/jira/browse/HIVE-6050&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 17:27:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/while-connecting-to-hiveserver2-from-my-java-client-I-am/m-p/129640#M31312</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-06-09T17:27:26Z</dc:date>
    </item>
  </channel>
</rss>

