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 F18CC10EE6 for ; Tue, 15 Oct 2013 19:30:51 +0000 (UTC) Received: (qmail 36747 invoked by uid 500); 15 Oct 2013 19:30:48 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 36712 invoked by uid 500); 15 Oct 2013 19:30:47 -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 36478 invoked by uid 99); 15 Oct 2013 19:30:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Oct 2013 19:30:45 +0000 Date: Tue, 15 Oct 2013 19:30:45 +0000 (UTC) From: "Eli Collins (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-4329) DFSShell issues with directories with spaces in name 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-4329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eli Collins updated HDFS-4329: ------------------------------ Fix Version/s: (was: 2.1.1-beta) Updating fix version to reflect that this did not make v2 GA. > DFSShell issues with directories with spaces in name > ---------------------------------------------------- > > Key: HDFS-4329 > URL: https://issues.apache.org/jira/browse/HDFS-4329 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs-client > Affects Versions: 3.0.0, 0.23.10, 2.1.1-beta > Reporter: Andy Isaacson > Assignee: Cristina L. Abad > Fix For: 3.0.0, 2.3.0, 0.23.10 > > Attachments: 4329.branch-0.23.patch, 4329.branch-0.23.v3.patch, 4329.branch-2.patch, 4329.trunk.patch, 4329.trunk.v2.patch, 4329.trunk.v3.patch > > > This bug was discovered by Casey Ching. > The command {{dfs -put /foo/hello.txt dir}} is supposed to create {{dir/hello.txt}} on HDFS. It doesn't work right if "dir" has a space in it: > {code} > [adi@haus01 ~]$ hdfs dfs -mkdir 'space cat' > [adi@haus01 ~]$ hdfs dfs -put /etc/motd 'space cat' > [adi@haus01 ~]$ hdfs dfs -cat 'space cat/motd' > cat: `space cat/motd': No such file or directory > [adi@haus01 ~]$ hdfs dfs -ls space\* > Found 1 items > -rw-r--r-- 2 adi supergroup 251 2012-12-20 11:16 space%2520cat/motd > [adi@haus01 ~]$ hdfs dfs -cat 'space%20cat/motd' > Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-30-generic x86_64) > ... > {code} > Note that the {{dfs -ls}} output wrongly encodes the wrongly encoded directory name, turning {{%20}} into {{%2520}}. It does the same thing with space: > {code} > [adi@haus01 ~]$ hdfs dfs -touchz 'space cat/foo' > [adi@haus01 ~]$ hdfs dfs -ls 'space cat' > Found 1 items > -rw-r--r-- 2 adi supergroup 0 2012-12-20 11:36 space%20cat/foo > {code} -- This message was sent by Atlassian JIRA (v6.1#6144)