cm api

亡梦爱人 提交于 2019-12-04 01:56:16

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'

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!