hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zjs...@apache.org
Subject [15/20] hadoop git commit: HDFS-8002. Website refers to /trash directory. Contributd by Brahma Reddy Battula.
Date Mon, 30 Mar 2015 19:37:21 GMT
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/6baa8fd2
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/6baa8fd2
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/6baa8fd2

Branch: refs/heads/YARN-2928
Commit: 6baa8fd21cbd070a0652983f252fbb30ae90c2b5
Parents: 040fd16
Author: Akira Ajisaka <aajisaka@apache.org>
Authored: Tue Mar 31 00:27:50 2015 +0900
Committer: Zhijie Shen <zjshen@apache.org>
Committed: Mon Mar 30 12:10:48 2015 -0700

----------------------------------------------------------------------
 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/6baa8fd2/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/6baa8fd2/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
 


Mime
View raw message