Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add links to configs in "Running in HTTP mode" and fix heading capitalization

...

Panel

HIVE_SERVER2_THRIFT_BIND_HOST – Optional TCP host interface to bind to. Overrides the configuration file setting.
HIVE_SERVER2_THRIFT_PORT – Optional TCP port number to listen on, default 10000. Overrides the configuration file setting.

Running in HTTP Mode

Anchor
Running in HTTP mode
Running in HTTP mode
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:

SettingDefaultDescription
hive.server2.transport.modebinarySet to http to enable HTTP transport mode
hive.server2.thrift.http.port10001HTTP port number to listen on
hive.server2.thrift.http.max.worker.threads500Maximum worker threads in the server pool
hive.server2.thrift.http.min.worker.threads5Minimum worker threads in the server pool
hive.server2.thrift.http.pathcliserviceThe service endpoint

...