Transport Mode
- Last Updated: September 3, 2021
- 1 minute read
- DataDirect Connectors
- ODBC
- Apache Spark SQL 8.0
- Documentation
Attribute
TransportMode (TRM)
Purpose
Specifies whether binary (TCP) mode or HTTP mode is used to access Apache Spark SQL data sources.
Valid Values
0 | 1
Behavior
If set to 0 (binary), Thrift RPC requests are sent directly to data sources using a binary connection (TCP mode).
If set to 1 (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 option corresponds to that of the
hive.server2.transport.modeproperty in your hive-site.xml file. - When HTTP mode is enabled (
TransportMode=1), the HTTP/HTTPS end point for the Hive server must be specified using the HTTP Path option. - To configure the driver to use HTTPS end points, set
TransportMode=1(HTTP) andEncryptionMethod=1(SSL). - If connecting to an Azure Databricks Spark cluster, this option must be set to
1(HTTP).
Default
0 (binary)