Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account 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.