hdfs - How to move deleted HDFS file into the Previous location
问题描述
This is the path when I have deleted the fie from the existing folder Moved: 'hdfs://nameservice1/user/edureka_978336/Assignment24/abc.txt' to trash at: hdfs://nameservice1/ user/edureka_978336/.Trash/Current/user/edureka_978336/Assignment24/abc.txt
Where Im trying to restore it through MV function but it's not working
hdfs dfs -mv /user/edureka_978336/.Trash/Current/user/edureka_978336/Assignment24/abc.txt/user/edureka_978336/Asign ment24
解决方案
你能粘贴当你说它不起作用时出现的错误。
hdfs dfs -mv sourcePath targetPath
此命令应该适用于将文件从垃圾箱中移回。确保您有权从垃圾箱中提取数据。可以尝试使用 sudo 运行:
sudo -u <user.name> hdfs dfs -mv sourcePath targetPath
推荐阅读
- c++ - 即使应用了错误条件,while循环也不会退出
- ios - Flutter - ListView 图像在滚动时过早消失,仅限物理 iOS 设备
- c# - 如果在解决方案文件中的任何项目中设置了某些 MsBuild 属性,有没有办法引发自定义编译错误?
- sql - 在存储过程中使用 like 运算符
- .htaccess - 我如何使用 .htaccess 将 www 获取到非 www 然后进入 web 根子文件夹
- c++ - C++ 设计问题(使用带有受保护成员的模型演示者视图)
- asp.net - ASP.Net Razor 页面生成错误的 URL
- java - 如何让 stdlib.jar 在 Intellij 中工作?
- perl - perl 和 sed 中的相同正则表达式的工作方式不同
- android - 如何为小于O的android创建通知通道