2
votes

I install a hue web client on my hadoop 2.5.1 cluster, hive web ui in HUE running well, but when I click the filebrowser button I find this error on my log.

Processing exception: Cannot access: /user/hadoop. Note: You are a Hue admin but not a HDFS superuser (which is "hadoop").: Traceback (most recent call last): File "/home/hadoop/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/handlers/base.py", line 111, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/home/hadoop/hue/apps/filebrowser/src/filebrowser/views.py", line 104, in index return view(request, path) File "/home/hadoop/hue/apps/filebrowser/src/filebrowser/views.py", line 181, in view raise PopupException(msg , detail=e) PopupException: Cannot access: /user/hadoop. Note: You are a Hue admin but not a HDFS superuser (which is "hadoop").

I can't touch the hdfs with hue, has anyone else experienced this and determined the resolution?

3

3 Answers

2
votes

in core-site.xml set

hadoop.proxyuser.hue.groups =*
hadoop.proxyuser.hue.hosts =*

In hdfs-Site.xml / or you can give permission to hue user of dir /

dfs.permissions.enabled = false
1
votes

That's right ! Either use username as "hadoop" to login to Hue or give permissions to Hue user on the HDFS.

1
votes

We also need to add the user name in Hdfs to solve this issue. Try running these commands in your terminal

Considering x as your user name

sudo -u hdfs hadoop fs -mkdir /user/x/
sudo -u hdfs hadoop fs -chown x:x /user/x/