Versions Compared

Key

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

...

  • The JDBC client (e.g. beeline) creates a HiveConnection by initiating a transport connection (e.g. TCP connection) followed by issuing TOpenSessionReq OpenSession API call to get the SessionHandlea SessionHandle. The session is created from server side.
  • HiveStatement contains SessionHandle information and pass it to HS2 The HiveStatement is executed (following JDBC standards) and ExecuteStatement API call is made from Thrift client. In the API call, SessionHandle information is passed to server along with the query information.
  • HS2 server receives the request and asks the driver (which is a CommandProcessor) is responsible for query parsing and compilation. HS2 kick The driver kicks off a background job to that will talk to Hadoop and then immediately returns response to client. This is an asynchronous design of the ExecuteStatement API. The response contains OperationHandle information which can used by client can use to poll the status of the query execution.  

...