简体   繁体   English

如何在Cloudera中恢复覆盖的目录

[英]How to recover an overwritten directory in cloudera

I was using HIVE in my Cloudera VM. 我在Cloudera VM中使用HIVE。

I used the below command to write my output of my HQL statement to an output file. 我使用以下命令将我的HQL语句的输出写入输出文件。

`INSERT OVERWRITE LOCAL DIRECTORY '/home/cloudera/output'
SELECT * from City; ....`

After getting the output i found that all my files in the cloudera directory got over written. 得到输出后,我发现cloudera目录中的所有文件都被覆盖。 i can see only my output file in the path. 我只能在路径中看到我的输出文件。

Is there any way i can undo or recover all the files that i've lost. 有什么办法可以撤消或恢复丢失的所有文件。

My hive.log file is below for any reference 以下是我的hive.log文件,仅供参考

You can try to search into hive trash folder (/user/hive/.Trash). 您可以尝试搜索到蜂巢回收站文件夹(/user/hive/.Trash)。 I think that you will find your lost file. 我认为您会找到丢失的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM