Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-6584 Support Archival Storage
  3. HDFS-8805

Archival Storage: getStoragePolicy should not need superuser privilege

    Details

    • Hadoop Flags:
      Reviewed

      Description

      The result of getStoragePolicy command is always 'unspecified' even we has set a StoragePolicy on a directory.But the real placement of blocks is correct.
      The result of fsck is not correct either.

      $ hdfs storagepolicies -setStoragePolicy -path /tmp/cold  -policy COLD
      Set storage policy COLD on /tmp/cold
      $ hdfs storagepolicies -getStoragePolicy -path /tmp/cold
      The storage policy of /tmp/cold is unspecified
      
      $ hdfs fsck -storagepolicies /tmp/cold
      Blocks NOT satisfying the specified storage policy:
      Storage Policy                  Specified Storage Policy      # of blocks       % of blocks
      ARCHIVE:4(COLD)                     HOT                           5              55.5556%
      ARCHIVE:3(COLD)                     HOT                           4              44.4444%
      

        Attachments

        1. HDFS-8805.patch
          1 kB
          Brahma Reddy Battula
        2. HDFS-8805-002.patch
          3 kB
          Brahma Reddy Battula
        3. HDFS-8805-003.patch
          6 kB
          Brahma Reddy Battula
        4. HDFS-8805-004.patch
          4 kB
          Brahma Reddy Battula

          Activity

            People

            • Assignee:
              brahmareddy Brahma Reddy Battula
              Reporter:
              huizane Hui Zheng
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: