Hue: Failed to access file system root

I am using Hue 3.9 with a Hadoop 2.6.2 cluster. All computers have Ubuntu 14.04. I was able to successfully install Hue, but it looks like it has some errors when viewing the hue from the web interface. I am trying to solve these problems one at a time, so I really only care about the first problem:

hadoop.hdfs_clusters.default.webhdfs_url Current value: http://localhost:50070/webhdfs/v1 Failed to access filesystem root 

Here is an image of Hue and its related errors

I have been looking for this error for a while, and I cannot understand why it is unable to access. I think that the solution may seem in the hue.ini configuration file, but I have not found anything useful in it yet. I also indicated the user β€œhduser” in the file, and hduser is a member of sudoers on the machine.

Any help is appreciated!

+5
source share
1 answer

HDFS uses an ACL to access the file system. If you run "HDFS DFS -LS" on your cluster, you will see owners and permissions similar to the Linux file system.

The Hue service is running with the user of the service. By default, this user is called β€œhue.” This can be changed in hue.ini. Configuration comments are self-explanatory. Look for "#Web server works like this" user ( https://github.com/cloudera/hue/blob/master/desktop/conf.dist/hue.ini

You have two options for solving the problem: * Authorize the HUE user to access all HDFS paths using ACLs (for example, grant the owner of the service ownership of objects in HDFS. * Or better: make sure that the use can represent these users by adding

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

in hdfs-site.xml

+8
source

Source: https://habr.com/ru/post/1242239/


All Articles