首页 > 其他 > 详细

如何获取到Hadoop集群的个数

时间:2016-04-15 00:42:43      阅读:245      评论:0      收藏:0      [点我收藏+]

Class ClusterStatus

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

ClusterStatus provides clients with information such as:

  1. Size of the cluster.
  2. Name of the trackers.
  3. Task capacity of the cluster.
  4. The number of currently running map and reduce tasks.
  5. State of the JobTracker.
  6. Details regarding black listed trackers.
-----------------------------------------------------------------------------------------------------------------------

 ClusterStatus clusterStatus = new JobClient(new JobConf()).getClusterStatus();

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

Nice!

如何获取到Hadoop集群的个数

原文:http://blog.csdn.net/yaoxiaochuang/article/details/51156296

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