Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

Solved Go to solution

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

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

Accepted Solutions
Highlighted

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

Super 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
Highlighted

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

Super 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

Highlighted

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

thnx @Jay SenSharma now its working.

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

Don't have an account?
Coming from Hortonworks? Activate your account here