Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Filesystem root '/' should be owned by 'hdfs' shows when i start hue

avatar
New Member

when i start hue i get this issue on hue

hadoop.hdfs_clusters.default.webhdfs_urlCurrent     value: http://namenode:50070/webhdfs/v1
                                                  Filesystem root '/' should be owned by 'hdfs'
1 ACCEPTED SOLUTION

avatar
Master Mentor

@Punit kumar Please run the following command to verify the permissions on HDFS directory "/"

# su - hdfs
# hdfs dfs -stat "%u %g" /
hdfs hdfs 

It should be owned by "hdfs:hdfs" if it is not then you can fix it by running the following command:

# hdfs dfs -chwon hdfs:hdfs / 

.

- It is Hue code that is explicitly checking for the default permission :

https://github.com/cloudera/hue/blob/9916b2b6389323ad8139d709e248156a7cf943f5/desktop/libs/hadoop/sr...

.

And the default superuser is defined in "hue.ini" as following:

default_hdfs_superuser=hdfs

https://github.com/cloudera/hue/blob/ef8812cb2033b628d90f5bffacc4ce7c27374e45/desktop/conf.dist/hue....

.

View solution in original post

2 REPLIES 2

avatar
Master Mentor

@Punit kumar Please run the following command to verify the permissions on HDFS directory "/"

# su - hdfs
# hdfs dfs -stat "%u %g" /
hdfs hdfs 

It should be owned by "hdfs:hdfs" if it is not then you can fix it by running the following command:

# hdfs dfs -chwon hdfs:hdfs / 

.

- It is Hue code that is explicitly checking for the default permission :

https://github.com/cloudera/hue/blob/9916b2b6389323ad8139d709e248156a7cf943f5/desktop/libs/hadoop/sr...

.

And the default superuser is defined in "hue.ini" as following:

default_hdfs_superuser=hdfs

https://github.com/cloudera/hue/blob/ef8812cb2033b628d90f5bffacc4ce7c27374e45/desktop/conf.dist/hue....

.

avatar
New Member

thnx @Jay SenSharma now its working.

But now when i am doing some query in hue it doesnt show any output