码迷,mamicode.com
首页 > 其他好文 > 详细

如何获取到Hadoop集群的个数

时间:2016-04-15 00:44:00      阅读:175      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!