GET api/v1/clusters/HDP/configurations可以获得所有的配置信息(例如,http://hdp0:8080/api/v1/clusters/HDP/configurations);但是只是一级信息;
  比如我想要获得yarn的scheduler的节点信息,将会找到:
 {
"href" : "http://hdp0:8080/api/v1/clusters/HDP/configurations?type=capacity-scheduler&tag=version1",
"tag" : "version1",
"type" : "capacity-scheduler",
"version" : 1,
"Config" : {
"cluster_name" : "HDP",
"stack_id" : "HDP-2.6"
}
}
  这里注意,type就是配置页面的配置项的名称,在配置页面中该配置项为“Capacity Scheduler”,处理的时候,中间的空格处理为"-",全字小写即使节点名称。然后,通过访问href指定的链接:http://hdp0:8080/api/v1/clusters/HDP/configurations?type=capacity-scheduler&tag=version1就可以看到该配置的详细信息
 {
"href" : "http://hdp0:8080/api/v1/clusters/HDP/configurations?type=capacity-scheduler&tag=version1",
"items" : [
{
"href" : "http://hdp0:8080/api/v1/clusters/HDP/configurations?type=capacity-scheduler&tag=version1",
"tag" : "version1",
"type" : "capacity-scheduler",
"version" : 1,
"Config" : {
"cluster_name" : "HDP",
"stack_id" : "HDP-2.6"
},
"properties" : {
"capacity-scheduler" : "null",
"yarn.scheduler.capacity.default.minimum-user-limit-percent" : "100",
"yarn.scheduler.capacity.maximum-am-resource-percent" : "0.2",
"yarn.scheduler.capacity.maximum-applications" : "10000",
"yarn.scheduler.capacity.node-locality-delay" : "40",
"yarn.scheduler.capacity.resource-calculator" : "org.apache.hadoop.yarn.util.resource.DefaultResourceCalculator",
"yarn.scheduler.capacity.root.accessible-node-labels" : "*",
"yarn.scheduler.capacity.root.acl_administer_queue" : "*",
"yarn.scheduler.capacity.root.capacity" : "100",
"yarn.scheduler.capacity.root.default.acl_administer_jobs" : "*",
"yarn.scheduler.capacity.root.default.acl_submit_applications" : "*",
"yarn.scheduler.capacity.root.default.capacity" : "100",
"yarn.scheduler.capacity.root.default.maximum-capacity" : "100",
"yarn.scheduler.capacity.root.default.state" : "RUNNING",
"yarn.scheduler.capacity.root.default.user-limit-factor" : "1",
"yarn.scheduler.capacity.root.queues" : "default"
}
}
]
}

最新文章

  1. C#异步调用的方法
  2. java 计算地球上两点间距离
  3. ndk学习7: 使用静态库
  4. sharepoint修改密码
  5. NGINX+UWSGI部署生产的DJANGO代码
  6. Trafic
  7. 如何在 静态编译的QT 5.5.1 中 使用数据库插件连接 ODBC(调用静态插件)
  8. 【转】MapReduce的优化
  9. 使用matplotlib绘制多轴图
  10. angularJS+Ionic移动端图片上传的解决办法
  11. ModuleNotFoundError: No module named '_sqlite3' -- python2.7 问题
  12. 2019年IntelliJ IDEA 最新注册码,亲测可用(截止到2020年3月11日)
  13. python算法博客推荐
  14. lua脚本之lua语言简介以及lua的安装
  15. SettingsTortoiseSVN
  16. Git 进阶操作(一)
  17. Kafka自我学习-报错篇
  18. saltstack内置执行模块useradd
  19. 在YUV图像上根据背景色实现OSD反色
  20. 韩顺平循序渐进学JAVA从入门到精通 视频全套,需要的联系我

热门文章

  1. 配置Nginx反向代理服务器
  2. 求逆元 HDU 2516
  3. Json -- 语法和示例,javascript 解析Json
  4. python测试函数的使用时间
  5. JNI_Z_05_方法的操作(没有String类型的参数)
  6. 【疯狂labview】 Xcontrol+LVoop封装练习 Toolbar
  7. .Net Core使用jexus配置https
  8. python中*和**的打包和解包
  9. 接口测试工具---postman下载地址
  10. TCP粘包处理 参考spserver