You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Hui Zheng (JIRA)" <ji...@apache.org> on 2015/07/22 12:02:05 UTC

[jira] [Created] (HDFS-8805) Archival Storage: it is unable to get StoragePolicy of a directory

Hui Zheng created HDFS-8805:
-------------------------------

             Summary: Archival Storage: it is unable to get StoragePolicy of a directory
                 Key: HDFS-8805
                 URL: https://issues.apache.org/jira/browse/HDFS-8805
             Project: Hadoop HDFS
          Issue Type: Sub-task
            Reporter: Hui Zheng


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.
{code}
$ 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%
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)