Support Questions
Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

Hive shell Issues


I am getting below warning messages while trying to launch hive from the command window.

How to supress these warning messages?



Super Guru

@dnyanesh kulkarnni

It says hive impersonation is not enabled which means your queries will run as user which is running hive process (its usually username "hive") instead of the user who submitted the query. So if you run hive shell as "dnyanesh" your query will still be run as "hive" which is a security flaw in case you want to trace down who ran what queries.

To get rid of the warning, you should enable Kerberos and then enable impersonation (impersonation will work without Kerberos also).<property>. set following property to true in hive-site.xml

  <description>Enable user impersonation for HiveServer2</description>

and then set following in core-site.xml


remember, this will get rid of your warning but it does not improve security unless Kerberos is enabled.

@mqureshi : I have checked above config files, its been set as it is as you mentioned. But still getting warning messages.