Created on 07-05-2016 03:44 AM - edited 08-19-2019 04:14 AM
The link is unavailable on hdp 2.5 sandbox. Any ideas why? What port is the dashboard available on so I can hit the url directly instead of going from ambari... Possible?
Created 07-05-2016 07:50 PM
You can enable Grafana on the Tech Preview with these steps..
Execute the first 2 steps inside SSH Web Client (http://127.0.0.1:4200). you will need to replace "admin:admin" with the username:password you chose and then replace "ambari.server" with 127.0.0.1 (or whichever host you've installed it on) and "cluster.name" with the name of the cluster "Sandbox" by default (case-sensitive). "host.name" for step#2 would most likely be "sandbox.hortonworks.com" unless you have changed it.
curl -u admin:admin -H "X-Requested-By:ambari" -i -X POST http://ambari.server:8080/api/v1/clusters/cluster.name/services/AMBARI_METRICS/components/METRICS_GR...
curl -u admin:admin -H "X-Requested-By:ambari" -i -X POST -d '{"host_components":[{"HostRoles":{"component_name":"METRICS_GRAFANA"}}]}' http://ambari.server:8080/api/v1/clusters/cluster.name/hosts?Hosts/host_name=host.name
Add the following 2 ports to be forwarded(top right icon with a + in it)
name: grafana, protocol: TCP, HOST IP : 127.0.0.1, HOST Port: 3000, Guest Port: 3000 name: collector, protocol: TCP, HOST IP: 127.0.0.1, HOST Port: 6188, Guest Port: 6188
You should be able to access Grafana directly from http://127.0.0.1:3000/ now.
Created 07-05-2016 06:29 PM
@Sunile Manjee
Grafana is not yet installed on HDP2.5 technical preview. It will be installed and tested very soon. @rmolina, please check out this.
Created 07-05-2016 07:50 PM
You can enable Grafana on the Tech Preview with these steps..
Execute the first 2 steps inside SSH Web Client (http://127.0.0.1:4200). you will need to replace "admin:admin" with the username:password you chose and then replace "ambari.server" with 127.0.0.1 (or whichever host you've installed it on) and "cluster.name" with the name of the cluster "Sandbox" by default (case-sensitive). "host.name" for step#2 would most likely be "sandbox.hortonworks.com" unless you have changed it.
curl -u admin:admin -H "X-Requested-By:ambari" -i -X POST http://ambari.server:8080/api/v1/clusters/cluster.name/services/AMBARI_METRICS/components/METRICS_GR...
curl -u admin:admin -H "X-Requested-By:ambari" -i -X POST -d '{"host_components":[{"HostRoles":{"component_name":"METRICS_GRAFANA"}}]}' http://ambari.server:8080/api/v1/clusters/cluster.name/hosts?Hosts/host_name=host.name
Add the following 2 ports to be forwarded(top right icon with a + in it)
name: grafana, protocol: TCP, HOST IP : 127.0.0.1, HOST Port: 3000, Guest Port: 3000 name: collector, protocol: TCP, HOST IP: 127.0.0.1, HOST Port: 6188, Guest Port: 6188
You should be able to access Grafana directly from http://127.0.0.1:3000/ now.
Created 07-06-2016 05:17 PM
hmmm wow. nice work.
Created 03-29-2017 07:05 AM
I meet this question after upgrading from 2.3 to 2.5, then now it's solved by this workarround.