Support Questions

Find answers, ask questions, and share your expertise

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

avatar

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

thnx @Jay SenSharma now its working.

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