-
Type:
Sub-task
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.8.0, 3.0.0-alpha1
-
Component/s: balancer & mover, namenode
-
Labels:None
-
Hadoop Flags:Reviewed
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%
- relates to
-
HDFS-14921 Remove SuperUser Check in Setting Storage Policy in FileStatus During Listing
-
- Resolved
-