hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Zhuge (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-13099) Globbing does not return file whose name has nonprintable character
Date Thu, 05 May 2016 18:08:13 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-13099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15272744#comment-15272744
] 

John Zhuge commented on HADOOP-13099:
-------------------------------------

An old HADOOP-7222 "Inconsistent behavior when passing a path with special characters as literals
to some FsShell commands" seems related.

> Globbing does not return file whose name has nonprintable character
> -------------------------------------------------------------------
>
>                 Key: HADOOP-13099
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13099
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.6.0
>            Reporter: John Zhuge
>            Assignee: John Zhuge
>
> In a directory, create a file with a name containing non-printable character, e.g., '\r'.
 {{dfs -ls dir}} can list such file, but {{dfs -ls dir/*}} can not.
> {noformat}
> $ hdfs dfs -touchz /tmp/test/abc
> $ hdfs dfs -touchz $'/tmp/test/abc\rdef'
> $ hdfs dfs -ls /tmp/test
> Found 2 items
> -rw-r--r--   3 systest supergroup          0 2016-05-05 01:35 /tmp/test/abc
> def-r--r--   3 systest supergroup          0 2016-05-05 01:36 /tmp/test/abc
> $ hdfs dfs -ls /tmp/test | od -c
> 0000000   F   o   u   n   d       2       i   t   e   m   s  \n   -   r
> 0000020   w   -   r   -   -   r   -   -               3       s   y   s
> 0000040   t   e   s   t       s   u   p   e   r   g   r   o   u   p    
> 0000060                                       0       2   0   1   6   -
> 0000100   0   5   -   0   5       0   1   :   3   5       /   t   m   p
> 0000120   /   t   e   s   t   /   a   b   c  \n   -   r   w   -   r   -
> 0000140   -   r   -   -               3       s   y   s   t   e   s   t
> 0000160       s   u   p   e   r   g   r   o   u   p                    
> 0000200                       0       2   0   1   6   -   0   5   -   0
> 0000220   5       0   1   :   3   6       /   t   m   p   /   t   e   s
> 0000240   t   /   a   b   c  \r   d   e   f  \n
> 0000252
> $ hdfs dfs -ls /tmp/test/*
> -rw-r--r--   3 systest supergroup          0 2016-05-05 01:35 /tmp/test/abc
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message