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

Hadoop 2 "-copyFromLocal" fail when source is a folder and there are spaces in the path

    XMLWordPrintableJSON

Details

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

    Description

      Repro steps:
      with folder structure like: /ab/c d/ef.txt
      hadoop command (hadoop fs -copyFromLocal /ab/ /) or (hadoop fs -copyFromLocal "/ab/c d/" /) fail with error:
      copyFromLocal: File file:/ab/c%20d/ef.txt does not exist

      However command (hadoop fs -copyFromLocal "/ab/c d/ef.txt" /) success.

      Seems like hadoop treat file and directory differently when "copyFromLocal".
      This only happens in Hadoop 2 and causing 2 Hive unit test failures (external_table_with_space_in_location_path.q and load_hdfs_file_with_space_in_the_name.q).

      Attachments

        1. HADOOP-10272.patch
          2 kB
          Chuan Liu

        Issue Links

          Activity

            People

              chuanliu Chuan Liu
              shuainie Shuaishuai Nie
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: