Reply
Highlighted
Contributor
Posts: 48
Registered: ‎09-20-2017

hive.keytab is deleted after restart

Hello,

 

I noticed the following behaviour:

 

1. I have set the following:

 

<property>
  <name>hive.metastore.kerberos.keytab.file</name>
  <value>/etc/hive/conf/hive.keytab</value>
</property>

2. I have generated and placed the hive.keytab in both MetaStoreServer and HS2 nodes

 

Now, each time I restart Hive these files are deleted as the whole /etc/hive/conf directory is re-created.

 

Am I doing something wrong?

Posts: 1,825
Kudos: 406
Solutions: 292
Registered: ‎07-31-2013

Re: hive.keytab is deleted after restart

Are you using Cloudera Manager?

If you are, do not manually customize contents under the /etc/hive/conf path as this is a symlink to a command generated directory that can be redeployed at any point (from UI or API actions on the cluster).

Try storing your keytab at a different path.

P.s. If you are using CM, it should be managing your keytabs for you, so you can avoid such steps. Is this configuration used to customize the entries of the keytab in a way that CM cannot?
Announcements