Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-6620

Snapshot docs should specify about preserve options with cp command

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 2.5.0
    • Fix Version/s: 2.5.0
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Currently snapshot docs contains the cp command details for copying the snapshot files to regular dfs tree.

      http://hadoop.apache.org/docs/r2.3.0/hadoop-project-dist/hadoop-hdfs/HdfsSnapshots.html#Snapshot_Paths

      Copying a file from snapshot s0:
      hdfs dfs -cp /foo/.snapshot/s0/bar /tmp

      Since there are important properties(acls, xattrs..etc) for a file may need to copy back. But looking at this doc may mislead to copy with out using any options. So, It may be worth mentioning aboit that properties. Infact it should copy all properties by default from snapshot file.

      1. HDFS-6620.002.patch
        3 kB
        Stephen Chu
      2. HDFS-6620.001.patch
        3 kB
        Stephen Chu

        Activity

          People

          • Assignee:
            Stephen Chu
            Reporter:
            Uma Maheswara Rao G
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development