Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to list all directories with COLD StoragePolicy

Highlighted

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.