Support Questions
Find answers, ask questions, and share your expertise
Alert: The Cloudera Community will undergo maintenance on Saturday, August 17 at 12:00am PDT. See more info here.

Sentry access denied to hdfs in Hue

Sentry access denied to hdfs in Hue

New Contributor

Hello all,


Recently i enabled sentry.  But when i log in to Hue using the superuser hdfs and click the security tab, it always prompts out "Access denied to hdfs".


And here is the hue error.log

[27/Apr/2016 11:48:43 +0800] hive         ERROR    could not retrieve roles
Traceback (most recent call last):
  File "/usr/lib/hue/apps/security/src/security/api/", line 65, in list_sentry_roles_by_group
    roles = get_api(request.user).list_sentry_roles_by_group(groupName)
  File "/usr/lib/hue/desktop/libs/libsentry/src/libsentry/", line 48, in decorator
    raise e
SentryException: Access denied to hdfs


I got the same settings as my other two clusters but only this one prompted error.


Thanks in advance.


Re: Sentry access denied to hdfs in Hue

Master Guru
The "hdfs" user is not a Sentry Service administrator and shouldn't be one ideally.

You can use "hive", "impala", or "hue" users (aside of "sentry") to act as a Sentry Service administrator.