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

copyFromLocal and renaming a file to ".snapshot" should output that ".snapshot" is a reserved name

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0-beta
    • Component/s: snapshots
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      Might be an unlikely scenario, but if users copyFromLocal a file/dir from local to HDFS and want the file/dir to be renamed to .snapshot, then they'll see an Input/output error like the following:

      schu-mbp:~ schu$ hdfs dfs -copyFromLocal testFile1 /tmp/.snapshot
      copyFromLocal: rename `/tmp/.snapshot._COPYING_' to `/tmp/.snapshot': Input/output error
      

      It'd be more clear if the error output was the usual ".snapshot" is a reserved name (this does show in the NN logs, though).

        Attachments

        1. HDFS-4848.000.patch
          1 kB
          Jing Zhao
        2. HDFS-4848.001.patch
          8 kB
          Jing Zhao
        3. HDFS-4848.002.patch
          13 kB
          Jing Zhao
        4. HDFS-4848.002.patch
          13 kB
          Jing Zhao

          Activity

            People

            • Assignee:
              jingzhao Jing Zhao
              Reporter:
              schu Stephen Chu
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: