snowch / biginsight-examples

Example projects to help you quickly get started with BigInsights
Apache License 2.0
7 stars 4 forks source link

Query a cluster to determine its services? #21

Closed snowch closed 8 years ago

snowch commented 8 years ago

At the moment, a test is run even if the cluster doesn't have the service enabled. An example of this is running BigX tests on a Basic (paygo) cluster. It would be much nicer if we could skip a test if that cluster doesn't support that test.

Is there some metadata we can query on the cluster to:

pregazzoni commented 8 years ago

I think for this, could query ambari rest api to see if service is present e.g

https://:/api/v1/clusters//services

Then check json object to see if service is there or not.

snowch commented 8 years ago

Thanks @pregazzoni

pregazzoni commented 8 years ago

See new ambari example I added. It lists all services on given cluster.