Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

HDFS 整个数据目录被删,请协助

avatar
New Contributor

HDFS服务  /user/hive/warehouse整个目录被删,请协助

 

 

1 ACCEPTED SOLUTION

avatar
Contributor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
4 REPLIES 4

avatar
Community Manager

Translation in English: The entire directory of HDFS service /user/hive/warehouse has been deleted, please assist



Regards,

Vidya Sargur,
Community Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

avatar
Expert Contributor

Hi @FEIDAI 

 

Check in hdfs trash if the deleted folder is there. (if you haven't used -skipTrash)

 

If you manage to find the folder under trash, copy it to your destination path

hdfs dfs -cp /user/hdfs/.Trash/Current/<your file> <destination>

 Otherwise, The best option is probably to find and use a data recovery tool or backup,

 

Regards,

 

 

avatar
Contributor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar
Community Manager

Hi @FEIDAI, has any of the replies resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. 



Regards,

Vidya Sargur,
Community Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community: