Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel

hive.server2.thrift.min.worker.threads – Minimum number of worker threads, default 5.

hive.server2.thrift.max.worker.threads – Maximum number of worker threads, default 100 500.

hive.server2.thrift.port – TCP port number to listen on, default 10000.

hive.server2.thrift.bind.host – TCP interface to bind to.

...

Panel

hive.server2.transport.mode – Set this to http.

Optional Environment Settings

Panel

hive.server2.thrift.http.port – HTTP port number to listen on; default is 10001.

hive.server2.thrift.http.path – The service endpoint; default is cliservice.

hive.server2.thrift.http.min.worker.threads – Minimum worker threads in the server pool; default is 5.

hive.server2.thrift.http.max.worker.threads – Maximum worker threads in the server pool; default is 500.

How to Start

Code Block
$HIVE_HOME/bin/hiveserver2

...

Panel

hive.server2.authentication – Authentication mode, default NONE. Options are NONE, KERBEROS, LDAP and CUSTOM.

hive.server2.authentication.kerberos.principal – Kerberos principal for server.

hive.server2.authentication.kerberos.keytab – Keytab for server principal.

hive.server2.authentication.ldap.url – LDAP url.

hive.server2.authentication.ldap.baseDN – LDAP base DN.

hive.server2.custom.authentication.class – Custom authentication class that implements org.apache.hive.service.auth.PasswdAuthenticationProvider interface.

...

Panel

fs.hdfs.impl.disable.cache – Disable HDFS filesystem cache, default false.

fs.file.impl.disable.cache – Disable local filesystem cache, default false.

...

Changes in HIVE-5351, which will be available in Hive 0.13, provides support for SSL encryption. To enable, set the following configurations in  hive-site.xml:

Panel

...

hive.server2.use.SSL – Set this to true.

...

hive.server2.keystore.

...

path – Set this to your keystore path.

hive.server2.keystore.

...

password Set this to your keystore password.

Python Client Driver

A Python client driver for HiveServer2 is available at https://github.com/BradRuderman/pyhs2 (thanks, Brad). It includes all the required packages such as SASL and Thrift wrappers.

...