Support Questions
Find answers, ask questions, and share your expertise

hive.keytab is deleted after restart

Rising Star



I noticed the following behaviour:


1. I have set the following:



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?


Master Guru
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?
Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.