cm_api

cm API:
https://github.com/cloudera/cm_api/tree/master/python/examples/auto-deploy
#看集群有几个cluster
curl -u admin:opaytest99 'http://localhost:7180/api/v1/clusters'
curl -u admin:opaytest99 'http://localhost:7180/api/v32/clusters/opay-test/services/serviceName/roles'
列出所有服务及健康状态:
curl -u admin:opaytest99 'http://localhost:7180/api/v32/clusters/opay-test/services'

看某个服务下有什么角色:
curl -u admin:opaytest99 'http://localhost:7180/api/v32/clusters/opay-test/services/hdfs/roles'
查看host信息:
curl -u admin:opaytest99 'http://195.189.142.89:7180/api/v32/hosts'

posted on 2019-11-04 21:40  锋锋2019  阅读(369)  评论(0编辑  收藏  举报

导航