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

Anonymous user requests to access on Hive HDFS files

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

Accepted Solutions

Re: Anonymous user requests to access on Hive HDFS files

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

Re: Anonymous user requests to access on Hive HDFS files

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

Re: Anonymous user requests to access on Hive HDFS files

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.

Re: Anonymous user requests to access on Hive HDFS files

Contributor

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

Re: Anonymous user requests to access on Hive HDFS files

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

Re: Anonymous user requests to access on Hive HDFS files

Contributor

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