色调:无法访问文件系统根目录 [英] Hue: Failed to access filesystem root

查看:740
本文介绍了色调:无法访问文件系统根目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Hadoop 2.6.2群集中使用Hue 3.9。电脑都有Ubuntu 14.04。我能够成功安装Hue,但从Web UI查看色调时确实出现了一些错误。我试图一次解决这些问题,所以我真的只关心现在的第一个问题:

  hadoop.hdfs_clusters.default.webhdfs_url当前值:http:// localhost:50070 / webhdfs / v1 
无法访问文件系统根目录

这是一张Hue的图片, a>



我一直在寻找这个错误一段时间,我无法弄清楚为什么它无法访问。我在想,这个解决方案可能会在hue.ini配置文件中显示出来,但我还没有在文件中找到任何有用的东西。我在文件中指定了用户hduser,hduser是机器上sudoers的成员。



任何帮助都是值得赞赏的!

解决方案

HDFS使用ACL来访问文件系统。如果您在群集上执行HDFS DFS -LS,您将看到与Linux文件系统类似的所有者和访问权限。

Hue服务使用服务用户。默认情况下,这个用户被称为色相。这可以在hue.ini中更改。对配置的评论是不言自明的。寻找#Webserver以此身份运行用户( https://github.com /cloudera/hue/blob/master/desktop/conf.dist/hue.ini



您有两个选择来解决问题:
*授权您的HUE用户使用ACL访问所有HDFS路径(例如,让服务用户拥有HDFS中对象的所有权。
*或更好:确保使用可以通过添加

$ b $来模拟此用户b

 <属性> 
<名称> hadoop.proxyuser.hue.hosts< / name>
<值> *<< ; /值>
< / property>
<属性>
<名称> hadoop.proxyuser.hue.groups< / name>
<值> *< ; / value>
< / property>

到hdfs-site.xml


I'm using Hue 3.9 with a Hadoop 2.6.2 cluster. The computers all have Ubuntu 14.04. I was able to successfully install Hue, but it does appear to have a few errors when viewing hue from the web UI. I'm trying to solve these issues one at a time, so I'm really only concerned with the first issue for right now:

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

Here is a picture of Hue and the errors associated

I've been looking this error up for a while and I cannot figure out why it fails to access. I'm thinking the solution might show itself in the hue.ini configuration file, but I've yet to find anything of use in the file. I specified the user "hduser" in the file as well and hduser is a member of sudoers on the machine.

Any help is appreciated!

解决方案

HDFS is using ACLs to access the filesystem. If you perform a "HDFS DFS -LS" on your cluster, you will see owners and access rights similar to a Linux file system.

The Hue service is executed with a service user. Per default, this user is called "hue". This can be changed in the hue.ini. Comments on the configuration are self-explanatory. Look for "# Webserver runs as this" user (https://github.com/cloudera/hue/blob/master/desktop/conf.dist/hue.ini

You have two options to solve the problem: * Authorise your HUE user to access all HDFS paths with ACLs (e.g. give the service user ownership over the objects in HDFS. * Or better: Make sure that use can impersonate this users by adding

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

to hdfs-site.xml

这篇关于色调:无法访问文件系统根目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆