New Contributor
Posts: 2
Registered: ‎04-26-2016

Sentry access denied to hdfs in Hue

[ Edited ]

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.

Posts: 1,903
Kudos: 435
Solutions: 307
Registered: ‎07-31-2013

Re: Sentry access denied to hdfs in Hue

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.