HADOOP-12374. Updated expunge command description.

(WeiWei Yang via eyang)

(cherry picked from commit b4bb8e1731)
This commit is contained in:
Eric Yang 2015-09-15 20:03:24 -07:00 committed by Akira Ajisaka
parent 5c35f6c460
commit 47dfb69a26
3 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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
----