Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Hue SecurityException: User: hduser is not allowed to impersonate hduser

Hue SecurityException: User: hduser is not allowed to impersonate hduser

New Contributor

Hi,

 

I am getting below exception while loading file browser in hue, 

Cannot access: /user/hduser.

SecurityException: Failed to obtain user group information: org.apache.hadoop.security.authorize.AuthorizationException: User: hduser is not allowed to impersonate hduser (error 403)

 

Steps followed -

1. Linux user hduser:hadoop 

2. Installed hue, and logged in with admin, created another superuser as hduser with groups hadoop, default

3. Logged in as hduser in hue, get above error while trying to load file browser.

 

Core-site config -

<property>
 <name>hadoop.proxyuser.hduser.hosts</name>
 <value>*</value>
 </property>
 <property>
 <name>hadoop.proxyuser.hduser.groups</name>
 <value>*</value>
 </property>
 <property>
 <name>hadoop.proxyuser.hue.hosts</name>
 <value>*</value>
 </property>
 <property>
 <name>hadoop.proxyuser.hue.groups</name>
 <value>*</value>
 </property>
 <property>
 <name>hadoop.proxyuser.oozie.hosts</name>
 <value>*</value>
 </property>
<property>
 <name>hadoop.proxyuser.oozie.groups</name>
 <value>*</value>
 </property>

 

hdfs-site.xml

<property>
 <name>dfs.webhdfs.enabled</name>
 <value>true</value>
</property>

 

hue.ini

 

# Webserver runs as this user
## server_user=hue
## server_group=hue

 

# This should be the Hue admin and proxy user
 default_user=hduser

# This should be the hadoop cluster admin
default_hdfs_superuser=hduser

 

[useradmin]
 # The name of the default user group that users will be a member of
 default_user_group=

 

Logs -

30/Dec/2015 23:28:05 -0800] middleware INFO Processing exception: Cannot access: /user/hduser. : Traceback (most recent call last):
File "/home/hduser/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/handlers/base.py", line 112, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/hduser/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/transaction.py", line 371, in inner
return func(*args, **kwargs)
File "/home/hduser/hue/apps/filebrowser/src/filebrowser/views.py", line 106, in index
return view(request, path)
File "/home/hduser/hue/apps/filebrowser/src/filebrowser/views.py", line 184, in view
raise PopupException(msg , detail=e)
PopupException: Cannot access: /user/hduser.
[30/Dec/2015 23:28:05 -0800] connectionpool DEBUG "GET /webhdfs/v1/user/hduser?op=GETFILESTATUS&user.name=hduser&doas=hduser HTTP/1.1" 403 None

 

Please help in resolving issue, tried everything.

Don't have an account?
Coming from Hortonworks? Activate your account here