分享

获取Hadoop集群的数目

nextuser 发表于 2016-9-13 12:18:56 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 0 6000
Class ClusterStatus

====================================================================

ClusterStatus provides clients with information such as:
Size of the cluster.
Name of the trackers.
Task capacity of the cluster.
The number of currently running map and reduce tasks.
State of the JobTracker.
Details regarding black listed trackers.
-----------------------------------------------------------------------------------------------------------------------
ClusterStatus clusterStatus = new JobClient(new JobConf()).getClusterStatus();
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

没找到任何评论,期待你打破沉寂

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条