首页 > Windows开发 > 详细

cm api

时间:2019-11-09 20:55:10      阅读:83      评论:0      收藏:0      [点我收藏+]

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‘

cm api

原文:https://www.cnblogs.com/hongfeng2019/p/11827521.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!