hadoop - 色调文件浏览器不工作

标签 hadoop hue

我已经安装了 hue,但 hue 中的文件浏览器无法正常工作并抛出“服务器错误 (500)”

来自 error.log 的数据

webhdfs      ERROR    Failed to determine superuser of WebHdfs at http://namenode:50070/webhdfs/v1: SecurityException: Failed to obtain user group information: org.apache.hadoop.security.authorize.AuthorizationException: User: hue is not allowed to impersonate hue (error 401)
Traceback (most recent call last):
  File "/home/hduser/huef/hue/desktop/libs/hadoop/src/hadoop/fs/webhdfs.py", line 108, in superuser
    sb = self.stats('/')
  File "/home/hduser/huef/hue/desktop/libs/hadoop/src/hadoop/fs/webhdfs.py", line 188, in stats
    res = self._stats(path)
  File "/home/hduser/huef/hue/desktop/libs/hadoop/src/hadoop/fs/webhdfs.py", line 182, in _stats
    raise ex

注意:我已将以下内容添加到 core-site.xml 并启用了 webhdfs

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

当我尝试通过 oozie 在 hue 中访问 hdfs 文件位置时出错

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

最佳答案

核心站点.xml

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

hdfs-site.xml

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

关于hadoop - 色调文件浏览器不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18614940/

相关文章:

android - 你能改变android ImageView上位图的图像色调吗?

java - AWS EMR - 使用 Java SDK 安装 HUE

hadoop - 使用 Hive 脚本处理每个开始/结束对的时间跨度

hadoop - 执行 sqoop eval 命令时出错

hadoop - OOZIE:PIG 作业执行失败

ubuntu - Hadoop Hue 无法访问文件系统根目录

java - mapreduce:我应该避免在映射器/ reducer 中创建对象吗?

hadoop - Hive 操作的 Oozie 工作流程

hadoop - Hue WEB UI 未在浏览器中加载

linux - 尝试安装 HUE 但没有成功