By turning on the Recycle Bin function, you can restore the original data of deleted files without timing out, thus preventing accidental deletion and providing backup. 1. Recycle Bin parameter settings and working mechanism 2. Enable Recycle Bin Modify <property> <name>fs.trash.interval</name> <value>1</value> </property> 3. View Recycle Bin The path of the recycle bin in the cluster: /user/username/.Trash/…. 4. Modify the user name for accessing the Recycle Bin The user name for entering the trash bin is dr.who by default, change it to the user name <property> <name>hadoop.http.staticuser.user</name> <value>Username</value> </property> 5. Files deleted by the program will not go through the Recycle Bin. You need to call moveToTrash() to enter the Recycle Bin. Trash trash = New Trash(conf); trash.moveToTrash(path); 6. Restore Recycle Bin Data hadoop fs -mv /user/atguigu/.Trash/Current/user/atguigu/input /user/atguigu/input 7. Empty the Recycle Bin hadoop fs -expunge Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links You may also be interested in:
|
<<: The perfect solution for MySql version problem sql_mode=only_full_group_by
>>: Detailed explanation of how to use binlog2sql to quickly roll back after MySQL misoperation
Preface This article mainly summarizes some of th...
When doing DIV+CSS layout of the page, it is very...
1: Docker private warehouse installation 1. Downl...
1: Understand the meaning of address rewriting an...
This article example shares the specific code of ...
Table of contents Actual combat process Let's...
Preface What is a slow query and how to optimize ...
Table of contents 1. Where to write JavaScript 2....
Under Linux, if you download and install an appli...
This article example shares the specific code of ...
The role of the a tag pseudo-class: ":link&qu...
union execution For ease of analysis, use the fol...
Step 1: Ensure that MySQL has binlog enabled show...
I just saw a post titled "Flow Theory and Des...
Table of contents Understanding Asynchrony fetch(...