Support Questions

Find answers, ask questions, and share your expertise

rm -rf command not working in HDP2.5

when i'm trying to remove the dir, it fails

cd /usr/lib/

rm -rf hue/*

can anyone faced similar issues ??


Super Mentor

@Subramaniyam KMV

With "root" user can you remove it?

Can you please share the output of the following:

# ls -lart /usr/lib/hue


We want to see if you are finding some ??????? attributes for the subdirectories/files present in that folder. Which indicates a corruption in the file system.

Example output

# ls -lart /usr/lib/hue
?????????? ? ? ? ?  ?   app.reg


Is this a Sandbox ?

i'm a root user. here is the output of the above command.

It is HDP 2.5 Sandbox


Super Mentor

@Subramaniyam KMV

Can you pelase share the exact error that you are getting while doing the

rm -rf /usr/lib/hue/*


here is the screenshot


Super Mentor

@Subramaniyam KMV

In your screenshot take any file / directory PATH and do a list command ..... I am very sure that you will find that it shows ????????? as i mentioned in my previous update. Which indicates a file system corruption on this directory.

Example: (You might find ?????????? ?? ?) in the output.

# ls -l /usr/lib/hue/ext/thirdparty/js/moovis
total 20
-rw-r--r-- 5 root root   38 Aug 26  2016 MooVis.js
-rw-r--r-- 5 root root 1546 Aug 26  2016 Protovis.Bar.js
-rw-r--r-- 5 root root 1356 Aug 26  2016 Protovis.js
-rw-r--r-- 5 root root 3497 Aug 26  2016 Protovis.Line.js
-rw-r--r-- 5 root root 1268 Aug 26  2016 Protovis.Pie.js