Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 94852 invoked from network); 19 May 2008 21:32:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 May 2008 21:32:18 -0000 Received: (qmail 91735 invoked by uid 500); 19 May 2008 21:32:17 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 91693 invoked by uid 500); 19 May 2008 21:32:17 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 91682 invoked by uid 99); 19 May 2008 21:32:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2008 14:32:17 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2008 21:31:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AB8DE234C118 for ; Mon, 19 May 2008 14:31:55 -0700 (PDT) Message-ID: <456071998.1211232715701.JavaMail.jira@brutus> Date: Mon, 19 May 2008 14:31:55 -0700 (PDT) From: "Chris Douglas (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-3173) inconsistent globbing support for dfs commands In-Reply-To: <1588989478.1207325964527.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 [ https://issues.apache.org/jira/browse/HADOOP-3173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Douglas updated HADOOP-3173: ---------------------------------- Status: Patch Available (was: Open) I'm marking this PA, mostly for discussion purposes. I'm not ecstatic about the current patch, but it passes tests on my machine and resolves the issue called out in this JIRA. > inconsistent globbing support for dfs commands > ---------------------------------------------- > > Key: HADOOP-3173 > URL: https://issues.apache.org/jira/browse/HADOOP-3173 > Project: Hadoop Core > Issue Type: Bug > Components: dfs > Environment: Hadoop 0.16.1 > Reporter: Rajiv Chittajallu > Fix For: 0.18.0 > > Attachments: 3173-0.patch > > > hadoop dfs -mkdir /user/*/bar creates a directory "/user/*/bar" and you cant deleted /user/* as -rmr expands the glob > $ hadoop dfs -mkdir /user/rajive/a/*/foo > $ hadoop dfs -ls /user/rajive/a > Found 4 items > /user/rajive/a/* 2008-04-04 16:09 rwx------ rajive users > /user/rajive/a/b 2008-04-04 16:08 rwx------ rajive users > /user/rajive/a/c 2008-04-04 16:08 rwx------ rajive users > /user/rajive/a/d 2008-04-04 16:08 rwx------ rajive users > $ hadoop dfs -ls /user/rajive/a/* > /user/rajive/a/*/foo 2008-04-04 16:09 rwx------ rajive users > $ hadoop dfs -rmr /user/rajive/a/* > Moved to trash: hdfs://namenode-1:8020/user/rajive/a/* > Moved to trash: hdfs://namenode-1:8020/user/rajive/a/b > Moved to trash: hdfs://namenode-1:8020/user/rajive/a/c > Moved to trash: hdfs://namenode-1:8020/user/rajive/a/d > I am not able to escape '*' from being expanded. > $ hadoop dfs -rmr '/user/rajive/a/*' > Moved to trash: hdfs://namenode-1:8020/user/rajive/a/* > Moved to trash: hdfs://namenode-1:8020/user/rajive/a/b > Moved to trash: hdfs://namenode-1:8020/user/rajive/a/c > Moved to trash: hdfs://namenode-1:8020/user/rajive/a/d > $ hadoop dfs -rmr '/user/rajive/a/\*' > Moved to trash: hdfs://namenode-1:8020/user/rajive/a/* > Moved to trash: hdfs://namenode-1:8020/user/rajive/a/b > Moved to trash: hdfs://namenode-1:8020/user/rajive/a/c > Moved to trash: hdfs://namenode-1:8020/user/rajive/a/d > $ hadoop dfs -rmr /user/rajive/a/\* > Moved to trash: hdfs://namenode-1:8020/user/rajive/a/* > Moved to trash: hdfs://namenode-1:8020/user/rajive/a/b > Moved to trash: hdfs://namenode-1:8020/user/rajive/a/c > Moved to trash: hdfs://namenode-1:8020/user/rajive/a/d -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.