Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hive, mail # user - Configuring Apache Hive using Kerberos Authentication


Copy link to this message
-
Re: Configuring Apache Hive using Kerberos Authentication
Prasad Mujumdar 2014-02-13, 17:52
 On the client side, you need to run kinit manually. Beeline doesn't
support getting TGT programatically. You should ideally have a different
userid for the client side.  Also the hive command line tool (invoked
directly as 'hive') is an embedded client that doesn't communicate with
HiveServer2. You should always use beeline shell as client for HiveServer2.
For example, the steps could be -
1) Add service principal and keytab in hive-site.xml, set authentication to
KERBEROS.
2) Start HiveServer2
3) On client side, kinit user1
4) run beeline
5) !connect jdbc:hive2://pg-server.foobar.com:10000/default;principal=hive/
[EMAIL PROTECTED]

thanks
Prasad

On Wed, Feb 12, 2014 at 8:18 AM, Anilkumar Kalshetti <
[EMAIL PROTECTED]> wrote: