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
1. When to execute setUp We all know that vue3 ca...
I believe everyone has had this feeling: watching ...
The original code is this: <div class='con...
Preface The <router-link> tag is a great to...
Database modification or deletion operations may ...
Harbor Harbor is an open source solution for buil...
Calculation of the box model <br />Margin + ...
1. Add a hard disk 2. Check the partition status:...
1. Construction components 1. A form must contain...
Preface When you install MySQL, you usually creat...
Preface In many cases, we will use virtual machin...
Preface The source code is only more than 100 lin...
A few days ago, when I was working on a requireme...
Preface Today, after synchronizing the order data...
Table of contents Short Introduction 1. Check the...