Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Hive Server 2 - LoginException: Unsupported authentication type KERBEROS

Hive Server 2 - LoginException: Unsupported authentication type KERBEROS

New Contributor

Hi ,

Hadoop version - 2.9.2

Apache hive - 2.3.5

Operating system - Windows10

I installed Hadoop and hive in my Windows machine and it works fine for NOSASL (hive site.xml)

<property>
<name>hive.server2.authentication</name>
<value>NOSASL</value>
</property>

 

But when I tried with KERBEROS  , could not start hive service2

ERROR

-------------

javax.security.auth.login.LoginException: Unsupported authentication type KERBEROS
at org.apache.hive.service.auth.HiveAuthFactory.getAuthTransFactory(HiveAuthFactory.java:184) ~[hive-service-2.3.5.jar:2.3.5]
at org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.run(ThriftBinaryCLIService.java:70) ~[hive-service-2.3.5.jar:2.3.5]at java.lang.Thread.run(Thread.java:748) [?:1.8.0_261]

 

I just followed the cloudera official documents to enable KERBEROS  
steps 

--------

1. installed KERBEROS   in windows 10

2. set the KRB5CCNAME  environment variable.

3. updated hive site.xml file

<property>
<name>hive.server2.authentication</name>
<value>KERBEROS</value>
</property>
<property>
<name>hive.server2.authentication.kerberos.principal</name>
<value>hive/_host@your-realm.com</value>
</property>
<property>
<name>hive.server2.authentication.kerberos.keytab</name>
<value>path of  krb5.keytab</value>
</property>

2 REPLIES 2
Highlighted

Re: Hive Server 2 - LoginException: Unsupported authentication type KERBEROS

Contributor
@RatheeshNote Can you update the hive site.xml as below. (note the kerberos is in small letters) Also accordingly edit the hive.server2.authentication.kerberos.principal value.
  <property>
    <name>hive.server2.authentication</name>
    <value>kerberos</value>
  </property>
  <property>
    <name>hive.server2.authentication.kerberos.principal</name>
    <value>hive/<fqdn-hostname>@<REALM.NAME></value>
  </property>

 

Highlighted

Re: Hive Server 2 - LoginException: Unsupported authentication type KERBEROS

New Contributor

Thank you @tusharkathpal , I updated hive site.xml , but issue is still  not resolved.

javax.security.auth.login.LoginException: Unsupported authentication type kerberos
at org.apache.hive.service.auth.HiveAuthFactory.getAuthTransFactory(HiveAuthFactory.java:184) ~[hive-service-2.3.5.jar:2.3.5]

Don't have an account?
Coming from Hortonworks? Activate your account here