Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13099

Glob should return files with special characters in name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.6.0
    • 3.0.0-alpha1
    • fs
    • None

    Description

      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.

      $ 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
      

      Attachments

        Issue Links

          Activity

            People

              jzhuge John Zhuge
              jzhuge John Zhuge
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: