Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EDA8DDC76 for ; Fri, 29 Jun 2012 19:52:44 +0000 (UTC) Received: (qmail 42363 invoked by uid 500); 29 Jun 2012 19:52:44 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 42331 invoked by uid 500); 29 Jun 2012 19:52:44 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 42322 invoked by uid 99); 29 Jun 2012 19:52:44 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2012 19:52:44 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 5AF6A14284F for ; Fri, 29 Jun 2012 19:52:44 +0000 (UTC) Date: Fri, 29 Jun 2012 19:52:44 +0000 (UTC) From: "Jeff Hodges (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1279406199.73026.1340999564374.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1673820991.44915.1340390443288.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (HDFS-3557) provide means of escaping special characters to `hadoop fs` command 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/HDFS-3557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404157#comment-13404157 ] Jeff Hodges commented on HDFS-3557: ----------------------------------- Sigh, I thought I had removed all the user specific stuff. Not able to edit it, so I'll just repost with it. $ hdfs -ls '/user/jhodges/NOPE_\{INPUT\}' ls: Illegal file pattern: Expecting set closure character or end of range, or } for glob {INPUT at 6 $ hdfs -ls '/user/jhodges/NOPE_{INPUT}' ls: Cannot access /user/jhodges/NOPE_{INPUT}: No such file or directory. $ hdfs -ls /user/jhodges/NOPE_\{INPUT\} ls: Cannot access /user/jhodges/NOPE_{INPUT}: No such file or directory. Proof of existence: $ hdfs -ls /user/jhodges | grep NOPE drwxr-xr-x - jhodges supergroup 0 2012-06-29 19:47 /user/jhodges/NOPE_{INPUT} > provide means of escaping special characters to `hadoop fs` command > ------------------------------------------------------------------- > > Key: HDFS-3557 > URL: https://issues.apache.org/jira/browse/HDFS-3557 > Project: Hadoop HDFS > Issue Type: Improvement > Reporter: Jeff Hodges > Priority: Minor > > When running an investigative job, I used a date parameter that selected multiple directories for the input (e.g. "my_data/2012/06/{18,19,20}"). It used this same date parameter when creating the output directory. > But `hadoop fs` was unable to ls, getmerge, or rmr it until I used the regex operator "?" and mv to change the name (that is, `-mv output/2012/06/?18,19,20? foobar"). > Shells and filesystems for other systems provide a means of escaping "special characters" generically, but there seems to be no such means in HDFS/`hadoop fs`. Providing one would be a great way to make accessing HDFS more robust. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira