Reply
New Contributor
Posts: 4
Registered: ‎12-05-2017

Getting HDFS Disk Usage Report via Cloudera Manager REST API

[ Edited ]

 

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

New Contributor
Posts: 3
Registered: ‎07-30-2018

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

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

Explorer
Posts: 10
Registered: ‎11-07-2016

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

[ Edited ]

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

New Contributor
Posts: 3
Registered: ‎07-30-2018

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

Brilliant! Thanks so much
Announcements
New solutions