当前位置: 首页>>代码示例>>Java>>正文


Java JobTrackerStatus.RUNNING属性代码示例

本文整理汇总了Java中org.apache.hadoop.mapreduce.Cluster.JobTrackerStatus.RUNNING属性的典型用法代码示例。如果您正苦于以下问题:Java JobTrackerStatus.RUNNING属性的具体用法?Java JobTrackerStatus.RUNNING怎么用?Java JobTrackerStatus.RUNNING使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.apache.hadoop.mapreduce.Cluster.JobTrackerStatus的用法示例。


在下文中一共展示了JobTrackerStatus.RUNNING属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: waitForJobTracker

/**
 * Wait for the jobtracker to be RUNNING.
 */
static void waitForJobTracker(JobClient jobClient) {
  while (true) {
    try {
      ClusterStatus status = jobClient.getClusterStatus();
      while (status.getJobTrackerStatus() != JobTrackerStatus.RUNNING) {
        waitFor(100);
        status = jobClient.getClusterStatus();
      }
      break; // means that the jt is ready
    } catch (IOException ioe) {}
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:15,代码来源:UtilsForTests.java

示例2: waitActive

public void waitActive() throws IOException {
  while (true) {
    for (JobTrackerHADaemon jtHaDaemon : jtHaDaemonList) {
      JobTracker jt = jtHaDaemon.getJobTracker();
      if (jt != null) {
        if (jt.getClusterStatus().getJobTrackerStatus() == JobTrackerStatus.RUNNING) {
          return;
        }
      }
    }
    try {
      Thread.sleep(1000);
    } catch (InterruptedException ie) {}
  }
}
 
开发者ID:Nextzero,项目名称:hadoop-2.6.0-cdh5.4.3,代码行数:15,代码来源:MiniMRHACluster.java

示例3: getClusterStatus

@Override
public ClusterStatus getClusterStatus() {
  int numTrackers = trackers.size();
  return new ClusterStatus(numTrackers, 0, 
                           JobTracker.TASKTRACKER_EXPIRY_INTERVAL,
                           maps, reduces,
                           numTrackers * maxMapTasksPerTracker,
                           numTrackers * maxReduceTasksPerTracker,
                           JobTrackerStatus.RUNNING);
}
 
开发者ID:Nextzero,项目名称:hadoop-2.6.0-cdh5.4.3,代码行数:10,代码来源:TestJobQueueTaskScheduler.java

示例4: getClusterStatus

public ClusterStatus getClusterStatus() {
  int numTrackers = trackers.size();
  return new ClusterStatus(numTrackers, 0, 
                           JobTracker.TASKTRACKER_EXPIRY_INTERVAL,
                           maps, reduces,
                           numTrackers * maxMapTasksPerTracker,
                           numTrackers * maxReduceTasksPerTracker,
                           JobTrackerStatus.RUNNING);
}
 
开发者ID:Nextzero,项目名称:hadoop-2.6.0-cdh5.4.3,代码行数:9,代码来源:TestParallelInitialization.java

示例5: tearDown

@After
public void tearDown() {
  ClusterStatus status = mr.getJobTrackerRunner().getJobTracker()
      .getClusterStatus(false);
  if (status.getJobTrackerStatus() == JobTrackerStatus.RUNNING) {
    mr.shutdown();
  }
  if (dfs != null) {
    dfs.shutdown();
  }
}
 
开发者ID:Nextzero,项目名称:hadoop-2.6.0-cdh5.4.3,代码行数:11,代码来源:TestRecoveryManager.java

示例6: getClusterStatus

public ClusterStatus getClusterStatus() {
  int numTrackers = trackers.size();
  return new ClusterStatus(numTrackers, maps, reduces,
      numTrackers * maxMapTasksPerTracker,
      numTrackers * maxReduceTasksPerTracker,
      JobTrackerStatus.RUNNING);
}
 
开发者ID:Nextzero,项目名称:hadoop-2.6.0-cdh5.4.3,代码行数:7,代码来源:TestCapacityScheduler.java

示例7: getClusterStatus

@Override
public ClusterStatus getClusterStatus() {
  int numTrackers = trackers.size();
  return new ClusterStatus(numTrackers, 0, 
                           10 * 60 * 1000,
                           maps, reduces,
                           numTrackers * maxMapTasksPerTracker,
                           numTrackers * maxReduceTasksPerTracker,
                           JobTrackerStatus.RUNNING);
}
 
开发者ID:rekhajoshm,项目名称:mapreduce-fork,代码行数:10,代码来源:TestJobQueueTaskScheduler.java

示例8: getClusterStatus

public ClusterStatus getClusterStatus() {
  int numTrackers = trackers.size();
  return new ClusterStatus(numTrackers, 0, 
                           10 * 60 * 1000,
                           maps, reduces,
                           numTrackers * maxMapTasksPerTracker,
                           numTrackers * maxReduceTasksPerTracker,
                           JobTrackerStatus.RUNNING);
}
 
开发者ID:rekhajoshm,项目名称:mapreduce-fork,代码行数:9,代码来源:TestParallelInitialization.java

示例9: getClusterStatus

@Override
public ClusterStatus getClusterStatus(boolean detailed) {
  return new ClusterStatus(
      taskTrackers().size() - getBlacklistedTrackerCount(),
      getBlacklistedTrackerCount(), 0, 0, 0, totalSlots/2, totalSlots/2, 
       JobTrackerStatus.RUNNING, 0);
}
 
开发者ID:rekhajoshm,项目名称:mapreduce-fork,代码行数:7,代码来源:FakeObjectUtilities.java

示例10: getClusterStatus

public ClusterStatus getClusterStatus() {
  int numTrackers = trackers.size();
  return new ClusterStatus(
    numTrackers, 0,
    ttExpiryInterval, maps, reduces,
    numTrackers * maxMapTasksPerTracker,
    numTrackers * maxReduceTasksPerTracker,
    JobTrackerStatus.RUNNING);
}
 
开发者ID:rekhajoshm,项目名称:mapreduce-fork,代码行数:9,代码来源:CapacityTestUtils.java

示例11: getClusterStatus

@Override
public ClusterStatus getClusterStatus() {
  int numTrackers = trackers.size();

  return new ClusterStatus(numTrackers, 0,
      ttExpiryInterval, maps, reduces,
      numTrackers * maxMapTasksPerTracker,
      numTrackers * maxReduceTasksPerTracker,
      JobTrackerStatus.RUNNING);
}
 
开发者ID:rekhajoshm,项目名称:mapreduce-fork,代码行数:10,代码来源:TestFairScheduler.java

示例12: getJobTrackerStatus

@Override
public JobTrackerStatus getJobTrackerStatus() throws IOException, InterruptedException {
	return JobTrackerStatus.RUNNING;
}
 
开发者ID:liuhaozzu,项目名称:big_data,代码行数:4,代码来源:YARNRunner.java

示例13: getJobTrackerStatus

@Override
public JobTrackerStatus getJobTrackerStatus() throws IOException,
    InterruptedException {
  return JobTrackerStatus.RUNNING;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:5,代码来源:YARNRunner.java

示例14: getJobTrackerStatus

public JobTrackerStatus getJobTrackerStatus() {
  return JobTrackerStatus.RUNNING;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:3,代码来源:LocalJobRunner.java

示例15: getClusterStatus

public ClusterStatus getClusterStatus(boolean detailed) {
  int numMapTasks = map_tasks.get();
  return new ClusterStatus(1, 0, 0, numMapTasks, reduce_tasks, 1, 1, 
                           JobTrackerStatus.RUNNING);
}
 
开发者ID:Nextzero,项目名称:hadoop-2.6.0-cdh5.4.3,代码行数:5,代码来源:LocalJobRunner.java


注:本文中的org.apache.hadoop.mapreduce.Cluster.JobTrackerStatus.RUNNING属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。