Reply
Explorer
Posts: 19
Registered: ‎07-24-2017

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

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/hduse
 
Please let me know where am I making the mistake and request to guide. 
Explorer
Posts: 19
Registered: ‎07-24-2017

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

Any body can help. 

 

my hdfs-site.xml has the following in HA NN and DN

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

My hue.ini has 

 [[hdfs_clusters]]
    # HA support by using HttpFs

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

      # NameNode logical name.
      ## logical_name=

      # Use WebHdfs/HttpFs as the communication mechanism.
      # Domain should be the NameNode or HttpFs host.
      # Default port is 14000 for HttpFs.
      ## webhdfs_url=http://localhost:50070/webhdfs/v1
       webhdfs_url=http://<gateway_host_name>:14000/webhdfs/v1

My httpFs-site.xml has

  <!-- HUE proxy user setting -->
  <property>
    <name>httpfs.proxyuser.hue.hosts</name>
    <value>*</value>
  </property>
  <property>
    <name>httpfs.proxyuser.hue.groups</name>
    <value>*</value>
  </property>

  <property>
    <name>httpfs.hadoop.config.dir</name>
    <value>/etc/hadoop/conf</value>
  </property>
</configuration>
New Contributor
Posts: 3
Registered: ‎05-22-2018

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

Hello Sandy, I'm currently facing the same issue now. Did you figured out how can you solve this error ! If yes, please share those details as it would be very helpful for us.

 

Thanks

Suraj

Explorer
Posts: 19
Registered: ‎07-24-2017

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

Hi Siraj,

I did not find the solution for this.

This was the issue with the manual setup. When I used cloudera package
installation all worked fine.
New Contributor
Posts: 3
Registered: ‎05-22-2018

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

[ Edited ]

Oh Ok, Thank you Sandy. I'm actually running the Hue instance in EMR cluster, so I think I can't apply any changes here with cloudera packages. 

 

Cloudera support team, if you have a possible solution for this please leave your comments. I could see this issue was raised by several developers but there were no apt solutions on this.

 

Cannot access: /user/. The HDFS REST service is not available.

HTTPConnectionPool(host='ip-XX-XX-XX-XX.ec2.internal', port=50070): Max retries exceeded with url:

 

Thanks

Suraj

 

 

New Contributor
Posts: 2
Registered: ‎01-02-2019

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

I have the same problem. Did anyone ever get this solved ?

Posts: 1,045
Topics: 1
Kudos: 263
Solutions: 131
Registered: ‎04-22-2014

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

Hi @lwpritchett,

 

We need to know exactly what action you are taking and what happens when you take it.  While your issue may be the same or similar to what was described earlier in this thread, we can't tell till we see your info.

 

Please also review your Hue log (/var/log/hue/runcpserver.log by default) at the time the problem occurs and share any log messages/exceptions you see at that time.  This should provide some background to start looking at the issue.

 

 

Highlighted
New Contributor
Posts: 2
Registered: ‎01-02-2019

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

I get this error on initial signon within HUE web UI. 

 

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

 

It should be taking me to my home directory "/user/lar00181" but instead is taking me to "/" root. The error is correct in that I do not have rights to access /. What I cannot figure out is why it is taking me to root in the first place. 

 

New Contributor
Posts: 1
Registered: ‎01-08-2019

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

In the Cloudera Manager, make sure that you have started HDFS and all the necessary services. I ran into this problem as well, but starting the command cluster solved the issue.

Cloudera Employee
Posts: 7
Registered: ‎11-08-2016

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

Hi Sandy,

 

Hue superusers are different from hdfs superusers. With this error message, it complains that the admin and hdfs users you created through hue are not part to hdfs superuser. You should be able to fix the issue by fixing the permission of the directories to the user/group on the cluster.

 

Hope this helps!

 

Weixia