Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parent Service resource doesn't exist #13

Open
mikehomee opened this issue May 19, 2016 · 8 comments
Open

Parent Service resource doesn't exist #13

mikehomee opened this issue May 19, 2016 · 8 comments

Comments

@mikehomee
Copy link

mikehomee commented May 19, 2016

Hi!

I'm having an issue using it, it's prompting me error below.

From WebUI
Parent Service resource doesn't exist.
Service not found, clusterName=MyCluster, serviceName=undefined.
Service not found, clusterName=MyCluster, serviceName=undefined.

From Grafana Logs
2016/05/19 10:00:08 [I] Completed 192.168.242.10 - "GET /api/v1/clusters/MyCluster/services/undefined/components/undefined HTTP/1.1" 404 Not Found 201 bytes in 11404us
2016/05/19 10:00:11 [I] Completed 192.168.242.10 - "GET /api/v1/clusters/MyCluster/services/undefined/components/undefined HTTP/1.1" 404 Not Found 201 bytes in 10980us
2016/05/19 10:00:13 [I] Completed 192.168.242.10 - "GET /api/v1/clusters/MyCluster/services/undefined/components/undefined HTTP/1.1" 404 Not Found 201 bytes in 11137us

Please help.
Thank you!

@mikehomee
Copy link
Author

BTW, I'm trying to display graphs from Kafka Component.
Namenode seems to be working though. :)

Please help.

Thank you!

@prajwalrao
Copy link
Contributor

@mikehomee What version of Ambari are you running?

@mikehomee
Copy link
Author

Hi @prajwalrao

I'm using Ambari 2.2.0 via HDP-2.3.2

@prajwalrao
Copy link
Contributor

Do you see anything when you try accessing this endpoint via browser?

http://ambari-host:port/api/v1/clusters/MyCluster/services/KAFKA/components/KAFKA_BROKER

@mikehomee
Copy link
Author

mikehomee commented May 19, 2016

Yes.

{
"href": "http://myserver.local.com:8080/api/v1/clusters/MyCluster/services/KAFKA/components/KAFKA_BROKER",
"ServiceComponentInfo": {
"category": "MASTER",
"cluster_name": "MyCluster",
"component_name": "KAFKA_BROKER",
"installed_count": 0,
"service_name": "KAFKA",
"started_count": 1,
"state": "STARTED",
"total_count": 1
},
"host_components": [
{
"href": "http://myserver.local.com:8080/api/v1/clusters/MyCluster/hosts/mykafka.local.com/host_components/KAFKA_BROKER",
"HostRoles": {
"cluster_name": "MyCluster",
"component_name": "KAFKA_BROKER",
"host_name": "mykafka.local.com"
}
}
]
}

@prajwalrao
Copy link
Contributor

@mikehomee As you can see, there are no metrics being emitted, which is why you see an error in Grafana logs.

http://ambari-host:port/api/v1/clusters/MyCluster/services/HDFS/components/NAMENODE

For example will show you the list of Namenode metrics (see the object array after "ServiceComponentInfo") that are exposed to the Ambari API, and therefore can be visualized via Grafana

@mikehomee
Copy link
Author

I see the differences now. Will check the ambari-metrics on kafka brokers.

Thank you, @prajwalrao

@prajwalrao
Copy link
Contributor

prajwalrao commented May 19, 2016

No problem @mikehomee Glad I could help :) You could use Ambari 2.2.2 (which comes with an AMS Datasource for Grafana ) and use it to visualize Kafka Metrics. » Ambari 2.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants