Support Questions

Find answers, ask questions, and share your expertise
Announcements
Welcome to the upgraded Community! Read this blog to see What’s New!

Getting HDFS Disk Usage Report via Cloudera Manager REST API

avatar
New Contributor

 

Hi everyone,

 

I would like to obtain the .CSV / .JSON file generated by the HDFS Disk Usage Report capability of HDFS File Explorer in Cloudera Manager using the REST API. Does anyone know how? 

 

Thanks in advance!

Best regards

3 REPLIES 3

avatar
Explorer

Hi,

 

I'm also looking into this, but have not yet discovered how to get it. I'm not even sure it's possible.

 

E

avatar
Explorer

Did you try this?

 

Fetch the HDFS usage report:

 

https://cloudera.github.io/cm_api/apidocs/v19/path__clusters_-clusterName-_services_-serviceName-_re...

 

It works for me:

 

https://<cm_host>:7183/api/v19/clusters/<ClusterName>/services/<ServiceName>/reports/hdfsUsageReport

 

https://cmmanager.domain.com:7183/api/v19/clusters/Production%20US/services/hdfs/reports/hdfsUsageRe...

 

 

You notice I use for ClusterName the chars %20 that represents a blank (my ClusterName is "Production US"), so I made the URL understand that is a blank

 

Regards,

Nic

avatar
Explorer
Brilliant! Thanks so much
Labels