Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-2802 Support for RW/RO snapshots in HDFS
  3. HDFS-4767

directory is not snapshottable after clrQuota

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Snapshot (HDFS-2802)
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      1. hadoop dfs -mkdir /user/foo/hdfs-snapshots

      2. hadoop dfsadmin -setQuota 1 /user/foo/hdfs-snapshots

      3. hadoop dfsadmin -allowSnapshot /user/foo/hdfs-snapshots
      Allowing snaphot on /user/foo/hdfs-snapshots succeeded

      4. hadoop dfs -createSnapshot /user/foo/hdfs-snapshots s1
      createSnapshot: org.apache.hadoop.hdfs.protocol.NSQuotaExceededException: The NameSpace quota (directories and files) is exceeded: quota=1 file count=2

      5. hadoop dfsadmin -clrQuota /user/foo/hdfs-snapshots

      6. hadoop dfs -createSnapshot /user/foo/hdfs-snapshots s1
      createSnapshot: org.apache.hadoop.hdfs.server.namenode.snapshot.SnapshotException: Directory is not a snapshottable directory: /user/foo/hdfs-snapshots

      Step 6 should have succeeded since the directory was already snapshottable(in step 3)

        Attachments

        1. HDFS-4767.001.patch
          6 kB
          Jing Zhao

          Activity

            People

            • Assignee:
              jingzhao Jing Zhao
              Reporter:
              rramya Ramya Sunil
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: