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.

rm -rf command not working in HDP2.5

Highlighted

rm -rf command not working in HDP2.5

New Contributor

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

cd /usr/lib/

rm -rf hue/*

can anyone faced similar issues ??

5 REPLIES 5

Re: rm -rf command not working in HDP2.5

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 ?

Re: rm -rf command not working in HDP2.5

New Contributor

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

It is HDP 2.5 Sandbox

hue-ls-command-output.png

Re: rm -rf command not working in HDP2.5

Super Mentor

@Subramaniyam KMV

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

rm -rf /usr/lib/hue/*

.

Re: rm -rf command not working in HDP2.5

New Contributor

here is the screenshot

hue-delete-error.png

Re: rm -rf command not working in HDP2.5

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

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