1. 程式人生 > >hue整合hadoop發生問題:Cannot access: /user/hue. Note: you are a Hue admin but not a HDFS superuser, "hadoo

hue整合hadoop發生問題:Cannot access: /user/hue. Note: you are a Hue admin but not a HDFS superuser, "hadoo

1.問題描述

當進入hue介面,點選File Browser,然後報錯403:

Cannot access: /user/hue. Note: you are a Hue admin but not a HDFS superuser, "hadoop" or part of HDFS supergroup, "supergroup".

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

2.原因

之前hdfs-site.xml和core-site.xml的配置沒有生效

(1)hdfs-site.xml

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

	<property>
	  <name>dfs.permissions.enabled</name>
	  <value>false</value>
	</property>

(2)core-site.xml

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

3.解決

重新啟動hdfs