Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B66D9200BC4 for ; Fri, 4 Nov 2016 19:46:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B4E6A160AEA; Fri, 4 Nov 2016 18:46:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F1377160B07 for ; Fri, 4 Nov 2016 19:45:59 +0100 (CET) Received: (qmail 79064 invoked by uid 500); 4 Nov 2016 18:45:59 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 78959 invoked by uid 99); 4 Nov 2016 18:45:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Nov 2016 18:45:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DD8552C2A6D for ; Fri, 4 Nov 2016 18:45:58 +0000 (UTC) Date: Fri, 4 Nov 2016 18:45:58 +0000 (UTC) From: "Daniel Templeton (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-5658) YARN should have a hook to delete a path from HDFS when an application ends MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 04 Nov 2016 18:46:00 -0000 [ https://issues.apache.org/jira/browse/YARN-5658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15637299#comment-15637299 ] Daniel Templeton commented on YARN-5658: ---------------------------------------- YARN-2261 isn't itself sufficient. It provides the hook to run arbitrary code, but unless all those AMs are extended to use YARN-2261 to offer a mechanism to delete a directory, it doesn't help me here. Using YARN-2261 here seems like overkill. I want to delete a directory in HDFS, so have to allocate a container and run a script to launch another JVM to talk to HDFS to delete the directory. > YARN should have a hook to delete a path from HDFS when an application ends > --------------------------------------------------------------------------- > > Key: YARN-5658 > URL: https://issues.apache.org/jira/browse/YARN-5658 > Project: Hadoop YARN > Issue Type: Improvement > Components: resourcemanager > Reporter: Daniel Templeton > Assignee: Daniel Templeton > > There are many cases when a client uploads data to HDFS and then needs to subsequently clean it up, such as with the distributed cache. It would be helpful if YARN would do that cleanup automatically on job completion. > The hook could be generic to an URI supported by {{FileSystem}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org