Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

What does entityName mean in CM API response?

avatar
Super Collaborator

Hello,

I have noticed in one of the charts (HDFS IO) available in CM dashboard for HDFS that runs below query have got values pulled from 2 separate entities for the same metric. Attached are the 3 screenshots for reference. 2 graphs showing values from individual entities and 1 the combined graph available in CM that triggers below query.

select total_bytes_read_rate_across_datanodes, total_bytes_written_rate_across_datanodes where category = SERVICE and serviceType = HDFS and clusterId = "1"

Two different entities are hdfs and hdfs:<cluster_name>

I have also verified the response from below API call, and it does returns both entities and both have latest data.

http://<cm-host>:7180/api/v19/timeseries?query=SELECT%20total_bytes_written_rate_across_datanodes%20WHERE%20category=SERVICE

What do they mean?
Where are they coming from?
How to get it fixed so a single value is returned for the metric?

Kindly advise.

Thanks
Snm1523


image (6).pngimage (5).pngScreenshot 2025-09-09 at 11.36.15.png
1 REPLY 1

avatar
Cloudera Employee

Hi, Snm1523

hdfs:<nameservice>, is available when HA is enabled on HDFS (HDFS > Configuration tab > NameNode Nameservice)

https://docs.cloudera.com/cdp-private-cloud-base/7.1.9/fault-tolerance/topics/cr-enabling-high-avail...

You can just show one, editing the query and adding "and entityName='hdfs'" or "and entityName='hdfs:<nameservice>'"

For instance, 

select total_bytes_read_rate_across_datanodes, total_bytes_written_rate_across_datanodes where category = SERVICE and serviceType = HDFS and entityName = 'hdfs'

Hope it helps.

Regards
Christian.