Hue File Browser not working

孤者浪人 提交于 2019-12-05 09:23:47

core-site.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>

You need to specify hduser as the proxy user:

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

BTW: why are you not running Hue as 'hue'?

What user are you logged as?

I had same issue, my solution was to create a HUE user called "hdfs" and added "hue" Linux user in "hadoop" and "hdfs" linux users groups.

So now I am logged in as "hdfs" user in HUE web UI.

You may see it says Failed to obtain user group information.

According to Hadoop docs, the group info is gathered by invoking shell command (on *nix system) groups $USERNAME. Therefore, the matching user MUST EXIST as a Linux user in HDFS Namenode, where authentication process occurs.

So the solution is simple as,

useradd hue -g root On the Namenode.

I'm deploying hdfs in a docker container, so I use group root. The value is the same as the user running the Namenode process (who is definitely the superuser).

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!