WireProtocolVersion
- Last Updated: May 15, 2020
- 1 minute read
- DataDirect Connectors
- JDBC
- IBM Db2 5.1
- MySQL 5.1
- Progress OpenEdge 5.1
- SAP Sybase 5.1
- Documentation
Purpose
Indicates which protocol to use when connecting to the Apache Hive server.
Valid Values
auto | HiveServer1 | HiveServer2
Behavior
If set to auto, 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 HiveServer1,
the driver only uses the HiveServer1 protocol to communicate with the
server.
If set to 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=HiveServer2and the driver attempts to connect to an Apache Hive server that only accepts connections using the HiveServer1 protocol.
Default
auto
Data Type
String