FAQ
Author: szehon
Date: Fri Dec 19 19:03:58 2014
New Revision: 1646826

URL: http://svn.apache.org/r1646826
Log:
HIVE-9006 : hiveserver thrift api version is still 6 (Binglin Chang via Szehon)

Modified:
     hive/trunk/service/if/TCLIService.thrift
     hive/trunk/service/src/gen/thrift/gen-cpp/TCLIService_types.h
     hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionReq.java
     hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionResp.java
     hive/trunk/service/src/gen/thrift/gen-py/TCLIService/ttypes.py
     hive/trunk/service/src/gen/thrift/gen-rb/t_c_l_i_service_types.rb

Modified: hive/trunk/service/if/TCLIService.thrift
URL: http://svn.apache.org/viewvc/hive/trunk/service/if/TCLIService.thrift?rev=1646826&r1=1646825&r2=1646826&view=diff
==============================================================================
--- hive/trunk/service/if/TCLIService.thrift (original)
+++ hive/trunk/service/if/TCLIService.thrift Fri Dec 19 19:03:58 2014
@@ -542,7 +542,7 @@ struct TOperationHandle {
  // which operations may be executed.
  struct TOpenSessionReq {
    // The version of the HiveServer2 protocol that the client is using.
- 1: required TProtocolVersion client_protocol = TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V6
+ 1: required TProtocolVersion client_protocol = TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V7

    // Username and password for authentication.
    // Depending on the authentication scheme being used,
@@ -561,7 +561,7 @@ struct TOpenSessionResp {
    1: required TStatus status

    // The protocol version that the server is using.
- 2: required TProtocolVersion serverProtocolVersion = TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V6
+ 2: required TProtocolVersion serverProtocolVersion = TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V7

    // Session Handle
    3: optional TSessionHandle sessionHandle

Modified: hive/trunk/service/src/gen/thrift/gen-cpp/TCLIService_types.h
URL: http://svn.apache.org/viewvc/hive/trunk/service/src/gen/thrift/gen-cpp/TCLIService_types.h?rev=1646826&r1=1646825&r2=1646826&view=diff
==============================================================================
--- hive/trunk/service/src/gen/thrift/gen-cpp/TCLIService_types.h (original)
+++ hive/trunk/service/src/gen/thrift/gen-cpp/TCLIService_types.h Fri Dec 19 19:03:58 2014
@@ -1946,8 +1946,8 @@ class TOpenSessionReq {
    static const char* ascii_fingerprint; // = "C8FD0F306A16C16BDA7B57F58BFAE5B2";
    static const uint8_t binary_fingerprint[16]; // = {0xC8,0xFD,0x0F,0x30,0x6A,0x16,0xC1,0x6B,0xDA,0x7B,0x57,0xF5,0x8B,0xFA,0xE5,0xB2};

- TOpenSessionReq() : client_protocol((TProtocolVersion::type)5), username(), password() {
- client_protocol = (TProtocolVersion::type)5;
+ TOpenSessionReq() : client_protocol((TProtocolVersion::type)6), username(), password() {
+ client_protocol = (TProtocolVersion::type)6;

    }

@@ -2022,8 +2022,8 @@ class TOpenSessionResp {
    static const char* ascii_fingerprint; // = "CFE7D7F4E9EC671F2518ED74FEE9F163";
    static const uint8_t binary_fingerprint[16]; // = {0xCF,0xE7,0xD7,0xF4,0xE9,0xEC,0x67,0x1F,0x25,0x18,0xED,0x74,0xFE,0xE9,0xF1,0x63};

- TOpenSessionResp() : serverProtocolVersion((TProtocolVersion::type)5) {
- serverProtocolVersion = (TProtocolVersion::type)5;
+ TOpenSessionResp() : serverProtocolVersion((TProtocolVersion::type)6) {
+ serverProtocolVersion = (TProtocolVersion::type)6;

    }


Modified: hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionReq.java
URL: http://svn.apache.org/viewvc/hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionReq.java?rev=1646826&r1=1646825&r2=1646826&view=diff
==============================================================================
--- hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionReq.java (original)
+++ hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionReq.java Fri Dec 19 19:03:58 2014
@@ -141,7 +141,7 @@ public class TOpenSessionReq implements
    }

    public TOpenSessionReq() {
- this.client_protocol = org.apache.hive.service.cli.thrift.TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V6;
+ this.client_protocol = org.apache.hive.service.cli.thrift.TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V7;

    }

@@ -188,7 +188,7 @@ public class TOpenSessionReq implements

    @Override
    public void clear() {
- this.client_protocol = org.apache.hive.service.cli.thrift.TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V6;
+ this.client_protocol = org.apache.hive.service.cli.thrift.TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V7;

      this.username = null;
      this.password = null;

Modified: hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionResp.java
URL: http://svn.apache.org/viewvc/hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionResp.java?rev=1646826&r1=1646825&r2=1646826&view=diff
==============================================================================
--- hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionResp.java (original)
+++ hive/trunk/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionResp.java Fri Dec 19 19:03:58 2014
@@ -141,7 +141,7 @@ public class TOpenSessionResp implements
    }

    public TOpenSessionResp() {
- this.serverProtocolVersion = org.apache.hive.service.cli.thrift.TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V6;
+ this.serverProtocolVersion = org.apache.hive.service.cli.thrift.TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V7;

    }

@@ -191,7 +191,7 @@ public class TOpenSessionResp implements
    @Override
    public void clear() {
      this.status = null;
- this.serverProtocolVersion = org.apache.hive.service.cli.thrift.TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V6;
+ this.serverProtocolVersion = org.apache.hive.service.cli.thrift.TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V7;

      this.sessionHandle = null;
      this.configuration = null;

Modified: hive/trunk/service/src/gen/thrift/gen-py/TCLIService/ttypes.py
URL: http://svn.apache.org/viewvc/hive/trunk/service/src/gen/thrift/gen-py/TCLIService/ttypes.py?rev=1646826&r1=1646825&r2=1646826&view=diff
==============================================================================
--- hive/trunk/service/src/gen/thrift/gen-py/TCLIService/ttypes.py (original)
+++ hive/trunk/service/src/gen/thrift/gen-py/TCLIService/ttypes.py Fri Dec 19 19:03:58 2014
@@ -3245,7 +3245,7 @@ class TOpenSessionReq:

    thrift_spec = (
      None, # 0
- (1, TType.I32, 'client_protocol', None, 5, ), # 1
+ (1, TType.I32, 'client_protocol', None, 6, ), # 1
      (2, TType.STRING, 'username', None, None, ), # 2
      (3, TType.STRING, 'password', None, None, ), # 3
      (4, TType.MAP, 'configuration', (TType.STRING,None,TType.STRING,None), None, ), # 4
@@ -3354,7 +3354,7 @@ class TOpenSessionResp:
    thrift_spec = (
      None, # 0
      (1, TType.STRUCT, 'status', (TStatus, TStatus.thrift_spec), None, ), # 1
- (2, TType.I32, 'serverProtocolVersion', None, 5, ), # 2
+ (2, TType.I32, 'serverProtocolVersion', None, 6, ), # 2
      (3, TType.STRUCT, 'sessionHandle', (TSessionHandle, TSessionHandle.thrift_spec), None, ), # 3
      (4, TType.MAP, 'configuration', (TType.STRING,None,TType.STRING,None), None, ), # 4
    )

Modified: hive/trunk/service/src/gen/thrift/gen-rb/t_c_l_i_service_types.rb
URL: http://svn.apache.org/viewvc/hive/trunk/service/src/gen/thrift/gen-rb/t_c_l_i_service_types.rb?rev=1646826&r1=1646825&r2=1646826&view=diff
==============================================================================
--- hive/trunk/service/src/gen/thrift/gen-rb/t_c_l_i_service_types.rb (original)
+++ hive/trunk/service/src/gen/thrift/gen-rb/t_c_l_i_service_types.rb Fri Dec 19 19:03:58 2014
@@ -947,7 +947,7 @@ class TOpenSessionReq
    CONFIGURATION = 4

    FIELDS = {
- CLIENT_PROTOCOL => {:type => ::Thrift::Types::I32, :name => 'client_protocol', :default => 5, :enum_class => ::TProtocolVersion},
+ CLIENT_PROTOCOL => {:type => ::Thrift::Types::I32, :name => 'client_protocol', :default => 6, :enum_class => ::TProtocolVersion},
      USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username', :optional => true},
      PASSWORD => {:type => ::Thrift::Types::STRING, :name => 'password', :optional => true},
      CONFIGURATION => {:type => ::Thrift::Types::MAP, :name => 'configuration', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true}
@@ -974,7 +974,7 @@ class TOpenSessionResp

    FIELDS = {
      STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::TStatus},
- SERVERPROTOCOLVERSION => {:type => ::Thrift::Types::I32, :name => 'serverProtocolVersion', :default => 5, :enum_class => ::TProtocolVersion},
+ SERVERPROTOCOLVERSION => {:type => ::Thrift::Types::I32, :name => 'serverProtocolVersion', :default => 6, :enum_class => ::TProtocolVersion},
      SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::TSessionHandle, :optional => true},
      CONFIGURATION => {:type => ::Thrift::Types::MAP, :name => 'configuration', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true}
    }

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedDec 19, '14 at 7:03p
activeDec 19, '14 at 7:03p
posts1
users1
websitehive.apache.org

1 user in discussion

Szehon: 1 post

People

Translate

site design / logo © 2021 Grokbase