From common-issues-return-166491-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Mon Mar 4 22:15:05 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 4E49918067C for ; Mon, 4 Mar 2019 23:15:05 +0100 (CET) Received: (qmail 74567 invoked by uid 500); 4 Mar 2019 22:15:04 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 74556 invoked by uid 99); 4 Mar 2019 22:15:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Mar 2019 22:15:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id CB56FC215D for ; Mon, 4 Mar 2019 22:15:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id YeIkqIJZEwRW for ; Mon, 4 Mar 2019 22:15:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id B9C6D60D93 for ; Mon, 4 Mar 2019 22:15:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id AE31AE27D4 for ; Mon, 4 Mar 2019 22:15:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 60A3625722 for ; Mon, 4 Mar 2019 22:15:00 +0000 (UTC) Date: Mon, 4 Mar 2019 22:15:00 +0000 (UTC) From: "Stephen O'Donnell (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-16140) Add emptyTrash option to purge trash immediately MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-16140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stephen O'Donnell updated HADOOP-16140: --------------------------------------- Attachment: HADOOP-14200.005.patch > Add emptyTrash option to purge trash immediately > ------------------------------------------------ > > Key: HADOOP-16140 > URL: https://issues.apache.org/jira/browse/HADOOP-16140 > Project: Hadoop Common > Issue Type: Improvement > Components: fs > Affects Versions: 3.3.0 > Reporter: Stephen O'Donnell > Assignee: Stephen O'Donnell > Priority: Major > Attachments: HADOOP-14200.002.patch, HADOOP-14200.003.patch, HADOOP-14200.004.patch, HADOOP-14200.005.patch, HDFS-14200.001.patch > > > I have always felt the HDFS trash is missing a simple way to empty the current users trash immediately. We have "expunge" but in my experience supporting clusters, end users find this confusing. When most end users run expunge, they really want to empty their trash immediately and get confused when expunge does not do this. > This can result in users performing somewhat dangerous "skipTrash" operations on the trash to free up space. The alternative, which most users will not figure out on their own is: > # Run the expunge command once - this will move the current folder to a checkpoint and remove any old checkpoints older than the retention interval > # Wait over 1 minute and then run expunge again, overriding fs.trash.interval to 1 minute using the following command hadoop fs -Dfs.trash.interval=1 -expunge. > With this Jira I am proposing to add a extra command, "hdfs dfs -emptyTrash" that purges everything in the logged in users Trash directories immediately. > How would the community feel about adding this new option? I will upload a patch for comments. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org