Understanding HiveServer2 properties

By default, HiveServer2 is started with default configurations. The configurations are mainly related to the port and host on which the server is going to start and number of threads that could be configured for client and background operations.

How to do it…

You can change the default properties for HiveServer2 by overriding the value in hive-site.xml in the conf folder of Hive package.

Property

Default Value

Description

hive.server2.thrift.port

10000

HiveServer2 thrift interface

hive.server2.thrift.bind.host

localhost

HiveServer2 bind host

hive.server2.thrift.min.worker.threads

5

Minimum thrift worker threads

hive.server2.thrift.max.worker.threads

500

Maximum thrift worker threads

hive.server2.authentication ...

Get Apache Hive Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.