Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 73591 invoked from network); 8 Aug 2006 22:42:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Aug 2006 22:42:02 -0000 Received: (qmail 39375 invoked by uid 500); 8 Aug 2006 22:42:01 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 39350 invoked by uid 500); 8 Aug 2006 22:42:01 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 39330 invoked by uid 99); 8 Aug 2006 22:42:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Aug 2006 15:42:01 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Aug 2006 15:42:00 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AEC687142CC for ; Tue, 8 Aug 2006 22:39:17 +0000 (GMT) Message-ID: <17871510.1155076757713.JavaMail.jira@brutus> Date: Tue, 8 Aug 2006 15:39:17 -0700 (PDT) From: "Owen O'Malley (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Commented: (HADOOP-431) default behaviour of dfsShell -rm should resemble 'rm -i', not 'rm -rf' In-Reply-To: <15901306.1155057373927.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HADOOP-431?page=comments#action_12426760 ] Owen O'Malley commented on HADOOP-431: -------------------------------------- -1 on making -i the default. (*smile* "-1" even looks like "-i") Part of the problem with even making the unix default the default is that in Hadoop, every logical file is modelled as a directory with a bunch of files in it (eg. my-data/part-* ). I'd suggest that the default should be willing to delete a first-level directory, but not a second-level or higher directory. (I'm defining a first-level directory to mean a directory with no sub-directories.) > default behaviour of dfsShell -rm should resemble 'rm -i', not 'rm -rf' > ----------------------------------------------------------------------- > > Key: HADOOP-431 > URL: http://issues.apache.org/jira/browse/HADOOP-431 > Project: Hadoop > Issue Type: Improvement > Reporter: Yoram Arnon > > when using hadoop dfs -rm the behaviour is like that of rm -rf. > That's very dangerous. > A better behaviour would require a confirmation and allow removal of files only by default. Optional flags would allow recursive and forced deleted. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira