Is it possible to connect to Hive via beeline using the (kerberos) keytab file, similar to the approach used for JDBC in
https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients#HiveServer2Clients-UsingKerberoswithaPre-AuthenticatedSubject
PS: beeline supports connection on a protected kiveberos server with username and password. But I'm looking for a way to link it with a keytab file. http://doc.mapr.com/display/MapR40x/Configuring+Hive+on+a+Secure+Cluster#ConfiguringHiveonaSecureCluster-UsingBeelinewithKerberos
, keytab beeline, keytab kinit, jdbc beeline .
kinit
kinit -k -t keytab principal
beeline
!connect jdbc:hive2://hostname:10000/default;principal=hive/_HOST@REALM
, .
, kerberos, . → , .
:
!connect jdbc:hive2://:10000/default;principal=hive/_HOST@REALM.COM Connecting to jdbc:hive2://:10000/default;principal=hive/_HOST@REALM.COM Enter username for jdbc:hive2://:10000/default;principal=hive/_HOST@REALM.COM: press enter Enter password for jdbc:hive2://:10000/default;principal=hive/_HOST@REALM.COM: press enter Connected to: Apache Hive (version 0.13.1-cdh5.3.7-SNAPSHOT) Driver: Hive JDBC (version 0.13.1-cdh5.3.7-SNAPSHOT) Transaction isolation: TRANSACTION_REPEATABLE_READ