如何使用RESTAPI获取Hadoop配置xml信息

如何使用RESTAPI获取Hadoop配置xml信息,hadoop,configuration,Hadoop,Configuration,我有core site.xml,mapred site.xml,hdfs site.xml和warn site.xml文件,位于“$(hadoop\u home)\etc\hadoop” 我需要使用weblink或webHdfs rest命令获取这些xml文件 在下面的链接中,我能够使用jmx(或)rest命令获取core site.xml,mapred site.xml http://:8088/conf 如何获取core site.xml和warn site.xml属性?最后,我得到了一个使

我有
core site.xml
mapred site.xml
hdfs site.xml
warn site.xml
文件,位于“$(hadoop\u home)\etc\hadoop”

我需要使用weblink或webHdfs rest命令获取这些xml文件

在下面的链接中,我能够使用jmx(或)rest命令获取
core site.xml
mapred site.xml

http://:8088/conf


如何获取
core site.xml
warn site.xml
属性?

最后,我得到了一个使用rest或jmx命令获取hadoop配置信息的解决方案

名称节点配置:

http://:50070/conf->(core-site.xml、mapred-site.xml、warn-site.xml、hdfs-site.xml)

节点管理器配置:

http://:8042/conf->(core-site.xml、mapred-site.xml、warn-site.xml)

资源管理器配置:

http://:8088/conf->(core-site.xml,mapred-site.xml)


注意:确保datanode和nodeManager信息必须与从属节点进行检查。namnode和resourceManager信息必须与主节点一起检查

最后,我得到了一个使用rest或jmx命令获取hadoop配置信息的解决方案

名称节点配置:

http://:50070/conf->(core-site.xml、mapred-site.xml、warn-site.xml、hdfs-site.xml)

节点管理器配置:

http://:8042/conf->(core-site.xml、mapred-site.xml、warn-site.xml)

资源管理器配置:

http://:8088/conf->(core-site.xml,mapred-site.xml)

注意:确保datanode和nodeManager信息必须与从属节点进行检查。namnode和resourceManager信息必须与主节点核对