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.