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.

Getting HDFS Disk Usage Report via Cloudera Manager REST API

Getting HDFS Disk Usage Report via Cloudera Manager REST API

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

Re: Getting HDFS Disk Usage Report via Cloudera Manager REST API

New Contributor

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

Re: Getting HDFS Disk Usage Report via Cloudera Manager REST API

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

Re: Getting HDFS Disk Usage Report via Cloudera Manager REST API

New Contributor
Brilliant! Thanks so much
Don't have an account?
Coming from Hortonworks? Activate your account here