HDFS-8002. Website refers to /trash directory. Contributd by Brahma Reddy 
Battula.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/e7ea2a8e
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/e7ea2a8e
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/e7ea2a8e

Branch: refs/heads/HDFS-7285
Commit: e7ea2a8e8f0a7b428ef10552885757b99b59e4dc
Parents: 04ee18e
Author: Akira Ajisaka <aajis...@apache.org>
Authored: Tue Mar 31 00:27:50 2015 +0900
Committer: Akira Ajisaka <aajis...@apache.org>
Committed: Tue Mar 31 00:27:50 2015 +0900

----------------------------------------------------------------------
 hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt                     | 3 +++
 hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HdfsDesign.md | 4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/e7ea2a8e/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt 
b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
index 811ee75..efba80e 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
@@ -376,6 +376,9 @@ Release 2.8.0 - UNRELEASED
     greater or equal to 1 there is mismatch in the UI report
     (J.Andreina via vinayakumarb)
 
+    HDFS-8002. Website refers to /trash directory. (Brahma Reddy Battula via
+    aajisaka)
+
 Release 2.7.0 - UNRELEASED
 
   INCOMPATIBLE CHANGES

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e7ea2a8e/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HdfsDesign.md
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HdfsDesign.md 
b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HdfsDesign.md
index 87a9fcd..5a8e366 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HdfsDesign.md
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HdfsDesign.md
@@ -224,9 +224,9 @@ Space Reclamation
 
 ### File Deletes and Undeletes
 
-When a file is deleted by a user or an application, it is not immediately 
removed from HDFS. Instead, HDFS first renames it to a file in the `/trash` 
directory. The file can be restored quickly as long as it remains in `/trash`. 
A file remains in `/trash` for a configurable amount of time. After the expiry 
of its life in `/trash`, the NameNode deletes the file from the HDFS namespace. 
The deletion of a file causes the blocks associated with the file to be freed. 
Note that there could be an appreciable time delay between the time a file is 
deleted by a user and the time of the corresponding increase in free space in 
HDFS.
+When a file is deleted by a user or an application, it is not immediately 
removed from HDFS. Instead, HDFS first renames it to a file in the trash 
directory(`/user/<username>/.Trash`). The file can be restored quickly as long 
as it remains in trash. A file remains in trash for a configurable amount of 
time. After the expiry of its life in trash, the NameNode deletes the file from 
the HDFS namespace. The deletion of a file causes the blocks associated with 
the file to be freed. Note that there could be an appreciable time delay 
between the time a file is deleted by a user and the time of the corresponding 
increase in free space in HDFS.
 
-A user can Undelete a file after deleting it as long as it remains in the 
`/trash` directory. If a user wants to undelete a file that he/she has deleted, 
he/she can navigate the `/trash` directory and retrieve the file. The `/trash` 
directory contains only the latest copy of the file that was deleted. The 
`/trash` directory is just like any other directory with one special feature: 
HDFS applies specified policies to automatically delete files from this 
directory. Current default trash interval is set to 0 (Deletes file without 
storing in trash). This value is configurable parameter stored as 
`fs.trash.interval` stored in core-site.xml.
+A user can Undelete a file after deleting it as long as it remains in the 
trash directory. If a user wants to undelete a file that he/she has deleted, 
he/she can navigate the trash directory and retrieve the file. The trash 
directory contains only the latest copy of the file that was deleted. The trash 
directory is just like any other directory with one special feature: HDFS 
applies specified policies to automatically delete files from this directory. 
Current default trash interval is set to 0 (Deletes file without storing in 
trash). This value is configurable parameter stored as `fs.trash.interval` 
stored in core-site.xml.
 
 ### Decrease Replication Factor
 

Reply via email to