Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Anonymous user requests to access on Hive HDFS files

avatar
Contributor

Hi all, I installed Hive on HDP 2.5. I configured Ranger to allow access to the HDFS path for only hive user. In Audit Ranger, there is an Anonymous user who wants to use /tmp/hive on HDFS. What is the purpose of this Anonymous user ? Thank you for your advice.

1 ACCEPTED SOLUTION

avatar
Guru

@Smart Data

This link talks about anonymous user: https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2. Like @mqureshi stated, if the value for hive.server2.authentication is set to NONE then you'd see the anonymous user come into play.

Also, since you are using ranger, I'd guess that the whole point is to ensure that you have more fine grained control i.e., for each user so impersonation should also be enabled.

View solution in original post

5 REPLIES 5

avatar

/tmp/hive is used for intermediate data by hive.

avatar
Super Guru
@Smart Data

What is the value of hive.server2.authentication in hive-site.xml? Default is NONE. Assuming this is none, and you don't specify a username, driver will default to using "anonymous" as the username.

avatar
Contributor

Thank you for your reply. Indeed, the value is NONE.

avatar
Guru

@Smart Data

This link talks about anonymous user: https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2. Like @mqureshi stated, if the value for hive.server2.authentication is set to NONE then you'd see the anonymous user come into play.

Also, since you are using ranger, I'd guess that the whole point is to ensure that you have more fine grained control i.e., for each user so impersonation should also be enabled.

avatar
Contributor

Thank you for your reply. I will try LDAP mode...