Rest Api,让dfs用于hadoop中的单个节点 [英] Rest Api for getting dfs used for individual nodes in hadoop

查看:99
本文介绍了Rest Api,让dfs用于hadoop中的单个节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否存在用于将df用于单个节点的其余API或Hadoop指标.当前,我通过手动执行以下命令来将dfs用于单个节点

Is there any rest API or Hadoop metrics for getting dfs used for individual nodes. Currently, I'm getting dfs used for individual nodes by executing the below command manually

hdfs dfsadmin -report

推荐答案

它不是REST API,但您应该能够使用NameNode的JMX接口提取此信息.

It's not a REST API but you should be able to use the NameNode's JMX interface to pull this info.

http://NAMENODE:DFSPORT/jmx?qry=Hadoop:service=NameNode,name=NameNodeInfo

其中包含与以下信息相同的信息:

This contains the same information as:

hdfs dfsadmin -report

也发布在:

http://NAMENODE:DFSPORT/dfshealth.html#tab-datanode

这篇关于Rest Api,让dfs用于hadoop中的单个节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆