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.keytab not generated while adding new hive client in kerberized cluster.

Highlighted

hive.server.keytab not generated while adding new hive client in kerberized cluster.

Contributor

We have 4 node HDP 2.3 cluster kerberized with Ad. Another client node(edge node) has been added into the cluster through ambari and hive client is installed.

But we saw that hive.service.keytab is not generated automatically, while it is available in other hive client. For this reason hive client unable to connect hive metastore using jdbc driver.

Can someone help?

4 REPLIES 4

Re: hive.server.keytab not generated while adding new hive client in kerberized cluster.

New Contributor

Hi @khireswar Kalita, please see this documentation and follow suggestions for regenerating keytabs on a specific host. This should resolve the issue.

Re: hive.server.keytab not generated while adding new hive client in kerberized cluster.

New Contributor

Re: hive.server.keytab not generated while adding new hive client in kerberized cluster.

Expert Contributor

Hello @khireswar Kalita . You do not need a Hive service keytab on the client node to make the JDBC connection to Hiveserver2. You do need to have a valid Kerberos ticket to perform the connection though. From the Linux command line you will execute the following command with your user ID: (please avoid doing this as hive or another service account)

kinit <user_id> 

You will then be prompted for your domain password. Once you enter the password you will be granted a ticket, which you can verify with the "klist" command. You would then be able to use the beeline client for a JDBC connection like so:

beeline -u "jdbc:hive2://hive2_host:10000/default;principal=hive/hive2_host@YOUR-REALM.COM"

Re: hive.server.keytab not generated while adding new hive client in kerberized cluster.

Contributor

Thanks for the reply.

In my case I could connect from beeline and hive cli without any issue. From some reason our developer getting issue while connecting from application. May be something missing in the code.