HTTP mode
- Last Updated: May 7, 2024
- 2 minute read
- DataDirect Connectors
- ODBC
- Apache Hive 8.0
- Documentation
In addition to the default thrift protocol (binary mode), the driver also supports HTTP mode, which allows you to access Apache Hive data stores using HTTP/HTTPS requests. When HTTP mode is enabled, thrift RPC messages are sent to an endpoint using HTTP transport. HTTP mode is typically employed when there is a need to access data through a proxy server, such as when connecting to a load balancer or a gateway server. Unless otherwise noted, the same features and functionality are supported for both the thrift and HTTP protocols.
To connect to a server using HTTP Mode:
The following examples demonstrate a basic configuration of HTTP mode with SSL enabled.
Using a connection URL:
DRIVER=DataDirect 8.0 Apache Hive Wire Protocol;HostName=HiveServer;PortNumber=10001;
DatabaseName=mydb1;EncryptionMethod=1;HTTPPath=mywarehouse;TransportMode=1;
Using the odbc.ini file:
Driver=ODBCHOME/lib/ivhivexx.so
Description=DataDirect Apache Hive Wire Protocol
DatabaseName=mydb1
EncryptionMethod=1
HTTPPath=mywarehouse
HostName=HiveServer
PortNumber=10001
TransportMode=1