skip to main content
The Connect XE Drivers : The Driver for Apache Hive : Connection Option Descriptions for Apache Hive : Wire Protocol Version
 

Try DataDirect Drivers Now
Wire Protocol Version

Attribute

WireProtocolVersion (WPV)

Purpose

Indicates which protocol to use when connecting to the Apache Hive server.

Valid Values

0 | 1 | 2

Behavior

If set to 0 (AutoDetect), the driver tries to connect using the HiveServer1 protocol and the HiveServer2 protocol simultaneously. Whichever server socket accepts the connection is the one that the driver continues to use for subsequent connections. For example, if the server socket accepts a connection request using the HiveServer2 protocol, subsequent connections from the driver use the same socket and protocol.
If set to 1 (HiveServer1), the driver only uses the HiveServer1 protocol to communicate with the server.
If set to 2 (HiveServer2), the driver only uses the HiveServer2 protocol to communicate with the server.

Notes

*If the protocol specified for WireProtocolVersion is not accepted by the Hive server to which you are connecting, the connection fails with a login timeout error, if LoginTimeout is enabled. For example, a login timeout error would be returned if you specify WireProtocolVersion=2 and the driver attempts to connect to an Apache Hive server that only accepts connections using the HiveServer1 protocol.

Default

0 (AutoDetect)

GUI Tab

General tab