Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-1109

HFTP and URL Encoding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.20.1, 0.20.2, 0.20.3, 0.21.0, 0.22.0
    • 0.22.0
    • contrib/hdfsproxy, datanode
    • None
    • Incompatible change, Reviewed

    Description

      We just saw this error happen in our cluster. If there is a file that has a "+" sign in the name it is not readable through HFTP protocol.
      The problem is when we are reading a file with HFTP we are passing a name of the file as a parameter in request and + gets undecoded into space on the server side. So the datanode receiving the streamFile request tries to access a file with space instead of + in the name and doesn't find that file.

      The proposed solution is to pass the filename as a part of URL as with all the other HFTP commands, since this is the only place where it is not being treated this way. Are there any objections to this?

      Attachments

        1. HDFS-1109.patch
          11 kB
          Dmytro Molkov
        2. HDFS-1109.2.patch
          8 kB
          Dmytro Molkov
        3. HDFS-1109.2_y0.20.1xx.patch
          5 kB
          Tsz-wo Sze
        4. HDFS-1109.2_y0.20.1xx_incremental.patch
          2 kB
          Rohini Palaniswamy

        Issue Links

          Activity

            People

              dms Dmytro Molkov
              dms Dmytro Molkov
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: