diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index e0fb6e87e0d..2c21fd3a2c5 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -200,6 +200,8 @@ Branch-2 ( Unreleased changes ) HADOOP-8689. Make trash a server side configuration option. (eli) + HADOOP-8710. Remove ability for users to easily run the trash emptire. (eli) + NEW FEATURES HDFS-3042. Automatic failover support for NameNode HA (todd) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Trash.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Trash.java index 76033eaa6f2..56ccac3b9c8 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Trash.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Trash.java @@ -117,9 +117,4 @@ public class Trash extends Configured { public Runnable getEmptier() throws IOException { return trashPolicy.getEmptier(); } - - /** Run an emptier.*/ - public static void main(String[] args) throws Exception { - new Trash(new Configuration()).getEmptier().run(); - } }