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

1,450 views
Skip to first unread message

San

unread,
Sep 9, 2017, 11:12:12 AM9/9/17
to Hue-Users
Hi,
I am new to Hue. I have installed Hue on the remote server than that of the namenode.


When I login to Hue and try to access the HDFS file locations, I am getting following error. 


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

I created the user admin and hdfs in Hue  and they are the superusers.  I have also created directories in hdfs and added to supergroup.

drwxr-xr-x   - hduser supergroup          0 2017-09-09 14:47 /user
drwxr-xr-x   - admin  supergroup          0 2017-09-09 14:16 /user/admin
drwxr-xr-x   - hdfs   supergroup          0 2017-09-09 14:13 /user/hdfs
drwxr-xr-x   - hduser supergroup          0 2017-09-04 17:27 /user/hduser






Please let me know where am I making the mistakge and request to guide. 



Jordan Moore

unread,
Sep 10, 2017, 3:30:34 PM9/10/17
to Hue-Users
Have you enabled WebHDFS on your Hadoop installation and set the necessary section that Hue talks to?

[hadoop]
 
[[hdfs_clusters]]
   
[[[default]]]
      fs_defaultfs
=hdfs://namenode.fqdn:port

"Cannot access: //" looks like you haven't set that value correctly

San

unread,
Sep 11, 2017, 2:21:26 AM9/11/17
to Hue-Users

      # Enter the filesystem uri
      fs_defaultfs=hdfs://ha-cluster


I did not use WebHDF and used HTTPFS as it is the HA cluster. My httpfs log file shows the following output 

2017-09-11 06:14:51,524  INFO Server [][:]  System property sets  httpfs.ssl.keystore.pass: <redacted>
2017-09-11 06:14:51,524  INFO Server [][:]  System property sets  httpfs.log.dir: /var/log/hadoop-httpfs/
2017-09-11 06:14:51,524  INFO Server [][:]  System property sets  httpfs.admin.port: 14001
2017-09-11 06:14:51,711  INFO FileSystemAccessService [][:]  Using FileSystemAccess JARs version [2.6.0-cdh5.12.0]
2017-09-11 06:14:52,669  INFO FileSystemAccessService [][:]  Using FileSystemAccess simple/pseudo authentication, principal [httpfs]
2017-09-11 06:14:52,808  INFO Server [][:]  Services initialized
2017-09-11 06:14:52,824  INFO Server [][:]  Server [httpfs] started!, status [NORMAL]
2017-09-11 06:14:52,980  INFO HttpFSServerWebApp [][:]  Connects to Namenode [hdfs://ha-cluster]

Karan Kumar

unread,
Sep 12, 2017, 12:21:39 PM9/12/17
to San, Hue-Users
Did u try setting this ?

Blog post : https://discuss.pivotal.io/hc/en-us/articles/212862957-How-to-deploy-Hue-on-HDFS-with-Namenode-HA

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

--
You received this message because you are subscribed to the Google Groups "Hue-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hue-user+unsubscribe@cloudera.org.



--
Thanks
Karan

San

unread,
Sep 12, 2017, 12:41:21 PM9/12/17
to Hue-Users, san...@gmail.com
Yes Karan,

I did it in httpfs-site.xml as well in core-site.xml file. 

Is it something to do with the permission of the hdfs directory ??
To unsubscribe from this group and stop receiving emails from it, send an email to hue-user+u...@cloudera.org.



--
Thanks
Karan
Reply all
Reply to author
Forward
0 new messages