cm_api

API cm:
https://github.com/cloudera/cm_api/tree/master/python/examples/auto-deploy
# see a few clusters Cluster
curl -u ADMIN: opaytest99 'HTTP: // localhost: 7180 / API / v1 / Clusters '
curl -u ADMIN: opaytest99' HTTP: // localhost: 7180 / API / V32 / Clusters / opay-the Test / services / serviceName / the Roles '
list all the services and health status:
curl -u ADMIN: opaytest99' http: // localhost: 7180 / api / v32 / clusters / opay-test / services'

Have a look at what role services:
curl -u ADMIN: opaytest99 'HTTP: // localhost: 7180 / API / V32 / Clusters / opay-the Test / Services / HDFS / the Roles'
View host information:
curl -u ADMIN: opaytest99 'http://195.189.142.89:7180/api/v32/hosts'

Guess you like

Origin www.cnblogs.com/hongfeng2019/p/11795074.html