Specifies whether binary (TCP) mode or HTTP mode is used to access Apache Spark SQL data sources.
Valid Values
binary | http
Behavior
If set to binary, Thrift RPC requests are sent to directly to data sources using a binary connection (TCP mode).
If set to http, Thrift RPC requests are sent using HTTP transport (HTTP mode). HTTP mode is typically used when connecting to a proxy server, such as a gateway, for improved security, or a load balancer.
Notes
The setting of this property corresponds to that of the hive.server2.transport.mode property in your hive-site.xml file.
When TransportMode=http, the HTTP/HTTPS end point for the Hive server must be specified using the httpPath property.
To configure the driver to use HTTPS end points, set TransportMode=http and EncryptionMethod=SSL.
Apache Spark SQL currently supports using only one protocol mode per server at a time.