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.

Rename folder on HDFS | Disappear

SOLVED Go to solution
Highlighted

Rename folder on HDFS | Disappear

Explorer

Dear Experts,

 

Recently faced an issues when I rename a 'backup' directory to 'backup_old' which is presented on hdfs.

 

I used the command "$ hdfs dfs -mv /backup  backup_old"  and I found 'backup_old' is not created on hdfs it suddenly disappear from hdfs. 

 

Could anyone tell me why I can not see the folder and where I can find it or I lost it.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Rename folder on HDFS | Disappear

Cloudera Employee
Hi Neelesh,

It seems you missed the leading "/" from the destination path, so it should be in your home directory. Can you please run "hdfs dfs -ls" as the same user? It should be there.
1 REPLY 1

Re: Rename folder on HDFS | Disappear

Cloudera Employee
Hi Neelesh,

It seems you missed the leading "/" from the destination path, so it should be in your home directory. Can you please run "hdfs dfs -ls" as the same user? It should be there.