Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Document HIVE-6972 & style changes

...

HiveServer2 provides support for sending Thrift RPC messages over HTTP transport (Hive 0.13 onward, see HIVE-4752). This is particularly useful to support a proxying intermediary between the client and the server (for example, for load balancing or security reasons). Currently, you can run HiveServer2 in either TCP mode or the HTTP mode, but not in both. For the corresponding JDBC URL , check this link: HiveServer2 Clients -- JDBC Connection URLs. Use the following settings to enable and configure HTTP mode:

SettingDefault

...

Description
hive.server2.transport.mode

...

binarySet

...

to http

...

Cookie Based Authentication

...

Optional Environment Settings

...

to enable HTTP transport mode
hive.server2.thrift.http.

...

port10001
HTTP port number to listen on

...

hive.server2.thrift.http

...

.max.worker.threads500Maximum worker threads in the server pool
hive.server2.thrift.http.min.worker.threads

...

5Minimum worker threads in the server pool
hive.server2.thrift.http.pathcliserviceThe service endpoint
Panel
Cookie Based Authentication

HIVE-9709 and HIVE-9710 introduced cookie based authentication for HiveServer2 in HTTP mode. The HiveServer2 parameters (; default is 5.hive.server2.thrift.http.max.worker.threads – Maximum worker threads in the server pool; default is 500cookie.*) associated with this change can be found here.

Optional Global Init File

...