You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Prasad Mujumdar (JIRA)" <ji...@apache.org> on 2013/03/15 20:28:12 UTC
[jira] [Commented] (HIVE-4184) Document HiveServer2 setup under the
admin documentation on hive wiki
[ https://issues.apache.org/jira/browse/HIVE-4184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13603732#comment-13603732 ]
Prasad Mujumdar commented on HIVE-4184:
---------------------------------------
HiveServer2 (HS2) is a thrift base server that enables remote clients to execute queries against hive and retrieve the results. Its an improved version of HiveServer that supports multi-client concurrency and authentication. It uses a new thrift interface with concurrency support. It is designed to provide better support for open API clients like JDBC and ODBC. The thrift IDL is available at https://github.com/apache/hive/blob/trunk/service/if/TCLIService.thrift
How to configure -
Configuration properties in hive-site.xml
hive.server2.thrift.min.worker.threads - Number of minimum worker threads, default 5.
hive.server2.thrift.max.worker.threads - Number of minimum worker threads, default 100
hive.server2.thrift.port - Tcp port to listen on , default 10000
hive.server2.thrift.bind.host - Tcp interface to bind to
Env
HIVE_SERVER2_THRIFT_BIND_HOST - optional tcp host interface to bind to. Overrides the config file setting
HIVE_SERVER2_THRIFT_PORT - optional tcp port# to listen on, default 10000. Overrides the config file setting
How to start
hiveserver2.sh
OR
hive --service hiveserver2
Authentication -
HiveServer2 support Anonymous (no auth), Kerberos, pass through LDAP and pluggable custom authentication.
Configuration -
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
Impersonation -
By default HiveServer2 performs the query processing as the user that started the server process. It can be enabled to impersonate the connected user.
Configuration -
hive.server2.enable.impersonation - Impersonate the connected user, default false
OR
hive.server2.enable.doAs - Impersonate the connected user, default false
fs.hdfs.impl.disable.cache - Disable filesystem cache, default false
> Document HiveServer2 setup under the admin documentation on hive wiki
> ----------------------------------------------------------------------
>
> Key: HIVE-4184
> URL: https://issues.apache.org/jira/browse/HIVE-4184
> Project: Hive
> Issue Type: Bug
> Components: Documentation, HiveServer2
> Reporter: Prasad Mujumdar
> Assignee: Prasad Mujumdar
>
> The setup/configuration instructions for HiveServer are available on https://cwiki.apache.org/confluence/display/Hive/AdminManual+SettingUpHiveServer
> We should include similar details for HiveServer2 configuration
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira