Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: The Cloudera Community will undergo maintenance on Saturday, August 17 at 12:00am PDT. See more info here.

How to list all directories with COLD StoragePolicy

How to list all directories with COLD StoragePolicy

New Contributor

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.