Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Hopefully this is kind of a manual for a new starter to locate various components in source code.

Server Side

  • Thrift IDL file for TCLIService: <BaseDir>/service-rpc/if/TCLIService.thrift (<BaseDir> is typically: <YourWorkspace>/hive/) 
  • TCLIService.Iface implemented byorg.apache.hive.service.cli.thrift.ThriftCLIService class 
  • ThriftCLIService subclassed byorg.apache.hive.service.cli.thrift.ThriftBinaryCLIService and org.apache.hive.service.cli.thrift.ThriftHttpCLIService for TCP mode and HTTP mode respectively.
  • org.apache.hive.service.cli.session.HiveSessionImpl class: Instance of this class are created on server side and managed by org.apache.accumulo.tserver.TabletServer.SessionManager instance.

  • org.apache.hive.service.cli.SessionHandle class: instances of this class are returned from server to client and used by client for as input for Thrift API calls.org.apache.hive.service.cli.operation.Operation class: defines an operation (e.g. a query). Instances of this class are created on server and managed by org.apache.hive.service.cli.operation.OperationManager instance.
  • org.apache.hive.service.auth.HiveAuthFactory class: a helper used by both HTTP and TCP mode for authentication. Refer to Setting Up HiveServer2 for various auth options.

Client Side


Interaction between client and server

  • org.apache.hive.service.cli.SessionHandle class: instances of this class are returned from server to client and used by client for as input for Thrift API calls.
  • org.apache.hive.service.cli.OperationHandle class: defines the operation handle which is part of of Operation and  and used as a operation identifier. It's used by Thrift client to poll the execution status of an operationorg.apache.hive.service.auth.HiveAuthFactory class: a helper used by both HTTP and TCP mode for authentication. Refer to Setting Up HiveServer2 for various auth options.