Reply
Highlighted
New Contributor
Posts: 1
Registered: ‎10-03-2018

How to list all directories with COLD StoragePolicy

Hello,

we have setup StorgePolicy for few years and I would need to list all ARCHIVE directories which has set up COLD StoragePolicy.

I didn't find any "hdfs" command which would be able to list it recursively and use the standard command "hdfs storagepolicies -getStoragePolicy -path <path>" is very time consuming because each request takes 2 sec go trought  entire HDFS takes several days/weeks.

 

Thank you.

Announcements