Repository: hadoop
Updated Branches:
  refs/heads/branch-2.7 5c35f6c46 -> 47dfb69a2


HADOOP-12374. Updated expunge command description.
(WeiWei Yang via eyang)

(cherry picked from commit b4bb8e1731d4a004397947ec32d8613c31242002)


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

Branch: refs/heads/branch-2.7
Commit: 47dfb69a26294b698d43107bc75f61d4fb652b4d
Parents: 5c35f6c
Author: Eric Yang <[email protected]>
Authored: Tue Sep 15 20:03:24 2015 -0700
Committer: Akira Ajisaka <[email protected]>
Committed: Sat Nov 14 13:13:38 2015 +0900

----------------------------------------------------------------------
 hadoop-common-project/hadoop-common/CHANGES.txt               | 3 +++
 .../src/main/java/org/apache/hadoop/fs/shell/Delete.java      | 7 +++++--
 .../hadoop-common/src/site/markdown/FileSystemShell.md        | 2 +-
 3 files changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/47dfb69a/hadoop-common-project/hadoop-common/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt 
b/hadoop-common-project/hadoop-common/CHANGES.txt
index 4d7274b..9fccee9 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -22,6 +22,9 @@ Release 2.7.3 - UNRELEASED
     ImpersonationProvider, DefaultImpersonationProvider, and DistCp.
     (Arshad Mohammad via aajisaka)
 
+    HADOOP-12374. Updated expunge command description.
+    (WeiWei Yang via eyang)
+
 Release 2.7.2 - UNRELEASED
 
   INCOMPATIBLE CHANGES

http://git-wip-us.apache.org/repos/asf/hadoop/blob/47dfb69a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Delete.java
----------------------------------------------------------------------
diff --git 
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Delete.java
 
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Delete.java
index 6798fbe..5b9f224 100644
--- 
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Delete.java
+++ 
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Delete.java
@@ -179,11 +179,14 @@ class Delete {
     }
   }
 
-  /** empty the trash */
+  // delete files from the trash that are older
+  // than the retention threshold.
   static class Expunge extends FsCommand {
     public static final String NAME = "expunge";
     public static final String USAGE = "";
-    public static final String DESCRIPTION = "Empty the Trash";
+    public static final String DESCRIPTION =
+        "Delete files from the trash that are older " +
+            "than the retention threshold";
 
     // TODO: should probably allow path arguments for the filesystems
     @Override

http://git-wip-us.apache.org/repos/asf/hadoop/blob/47dfb69a/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md
----------------------------------------------------------------------
diff --git 
a/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md 
b/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md
index 4f27e24..66df4f1 100644
--- a/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md
+++ b/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md
@@ -271,7 +271,7 @@ expunge
 
 Usage: `hadoop fs -expunge`
 
-Empty the Trash. Refer to the [HDFS Architecture 
Guide](../hadoop-hdfs/HdfsDesign.html) for more information on the Trash 
feature.
+If trash is enabled when a file is deleted, HDFS instead moves the deleted 
file to a trash directory. This command causes HDFS to permanently delete files 
from the trash that are older than the retention threshold. Refer to the [File 
Deletes and Undeletes 
Guide](../hadoop-hdfs/HdfsDesign.html#File_Deletes_and_Undeletes) in Space 
Reclamation section for more information on the Trash feature.
 
 find
 ----

Reply via email to