org.apache.hadoop.mapreduce.TaskTrackerInfo Java Examples

The following examples show how to use org.apache.hadoop.mapreduce.TaskTrackerInfo. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CLI.java    From hadoop with Apache License 2.0 5 votes vote down vote up
/**
 * Display the list of blacklisted trackers
 */
private void listBlacklistedTrackers(Cluster cluster) 
    throws IOException, InterruptedException {
  TaskTrackerInfo[] trackers = cluster.getBlackListedTaskTrackers();
  if (trackers.length > 0) {
    System.out.println("BlackListedNode \t Reason");
  }
  for (TaskTrackerInfo tracker : trackers) {
    System.out.println(tracker.getTaskTrackerName() + "\t" + 
      tracker.getReasonForBlacklist());
  }
}
 
Example #2
Source File: CLI.java    From big-c with Apache License 2.0 5 votes vote down vote up
/**
 * Display the list of active trackers
 */
private void listActiveTrackers(Cluster cluster) 
    throws IOException, InterruptedException {
  TaskTrackerInfo[] trackers = cluster.getActiveTaskTrackers();
  for (TaskTrackerInfo tracker : trackers) {
    System.out.println(tracker.getTaskTrackerName());
  }
}
 
Example #3
Source File: CLI.java    From big-c with Apache License 2.0 5 votes vote down vote up
/**
 * Display the list of blacklisted trackers
 */
private void listBlacklistedTrackers(Cluster cluster) 
    throws IOException, InterruptedException {
  TaskTrackerInfo[] trackers = cluster.getBlackListedTaskTrackers();
  if (trackers.length > 0) {
    System.out.println("BlackListedNode \t Reason");
  }
  for (TaskTrackerInfo tracker : trackers) {
    System.out.println(tracker.getTaskTrackerName() + "\t" + 
      tracker.getReasonForBlacklist());
  }
}
 
Example #4
Source File: JobClient.java    From big-c with Apache License 2.0 5 votes vote down vote up
private  Collection<BlackListInfo> arrayToBlackListInfo(TaskTrackerInfo[] objs) {
  Collection<BlackListInfo> list = new ArrayList<BlackListInfo>();
  for (TaskTrackerInfo info: objs) {
    BlackListInfo binfo = new BlackListInfo();
    binfo.setTrackerName(info.getTaskTrackerName());
    binfo.setReasonForBlackListing(info.getReasonForBlacklist());
    binfo.setBlackListReport(info.getBlacklistReport());
    list.add(binfo);
  }
  return list;
}
 
Example #5
Source File: JobClient.java    From big-c with Apache License 2.0 5 votes vote down vote up
private  Collection<String> arrayToStringList(TaskTrackerInfo[] objs) {
  Collection<String> list = new ArrayList<String>();
  for (TaskTrackerInfo info: objs) {
    list.add(info.getTaskTrackerName());
  }
  return list;
}
 
Example #6
Source File: ResourceMgrDelegate.java    From incubator-tez with Apache License 2.0 5 votes vote down vote up
public TaskTrackerInfo[] getActiveTrackers() throws IOException,
    InterruptedException {
  try {
    return TypeConverter.fromYarnNodes(client.getNodeReports());
  } catch (YarnException e) {
    throw new IOException(e);
  }
}
 
Example #7
Source File: ResourceMgrDelegate.java    From big-c with Apache License 2.0 5 votes vote down vote up
public TaskTrackerInfo[] getActiveTrackers() throws IOException,
    InterruptedException {
  try {
    return TypeConverter.fromYarnNodes(
        client.getNodeReports(NodeState.RUNNING));
  } catch (YarnException e) {
    throw new IOException(e);
  }
}
 
Example #8
Source File: CLI.java    From hadoop with Apache License 2.0 5 votes vote down vote up
/**
 * Display the list of active trackers
 */
private void listActiveTrackers(Cluster cluster) 
    throws IOException, InterruptedException {
  TaskTrackerInfo[] trackers = cluster.getActiveTaskTrackers();
  for (TaskTrackerInfo tracker : trackers) {
    System.out.println(tracker.getTaskTrackerName());
  }
}
 
Example #9
Source File: JobClient.java    From hadoop with Apache License 2.0 5 votes vote down vote up
private  Collection<BlackListInfo> arrayToBlackListInfo(TaskTrackerInfo[] objs) {
  Collection<BlackListInfo> list = new ArrayList<BlackListInfo>();
  for (TaskTrackerInfo info: objs) {
    BlackListInfo binfo = new BlackListInfo();
    binfo.setTrackerName(info.getTaskTrackerName());
    binfo.setReasonForBlackListing(info.getReasonForBlacklist());
    binfo.setBlackListReport(info.getBlacklistReport());
    list.add(binfo);
  }
  return list;
}
 
Example #10
Source File: JobClient.java    From hadoop with Apache License 2.0 5 votes vote down vote up
private  Collection<String> arrayToStringList(TaskTrackerInfo[] objs) {
  Collection<String> list = new ArrayList<String>();
  for (TaskTrackerInfo info: objs) {
    list.add(info.getTaskTrackerName());
  }
  return list;
}
 
Example #11
Source File: ResourceMgrDelegate.java    From tez with Apache License 2.0 5 votes vote down vote up
public TaskTrackerInfo[] getActiveTrackers() throws IOException,
    InterruptedException {
  try {
    return TypeConverter.fromYarnNodes(client.getNodeReports());
  } catch (YarnException e) {
    throw new IOException(e);
  }
}
 
Example #12
Source File: ResourceMgrDelegate.java    From hadoop with Apache License 2.0 5 votes vote down vote up
public TaskTrackerInfo[] getActiveTrackers() throws IOException,
    InterruptedException {
  try {
    return TypeConverter.fromYarnNodes(
        client.getNodeReports(NodeState.RUNNING));
  } catch (YarnException e) {
    throw new IOException(e);
  }
}
 
Example #13
Source File: YARNRunner.java    From incubator-tez with Apache License 2.0 4 votes vote down vote up
@Override
public TaskTrackerInfo[] getActiveTrackers() throws IOException,
    InterruptedException {
  return resMgrDelegate.getActiveTrackers();
}
 
Example #14
Source File: ResourceMgrDelegate.java    From incubator-tez with Apache License 2.0 4 votes vote down vote up
public TaskTrackerInfo[] getBlacklistedTrackers() throws IOException,
    InterruptedException {
  // TODO: Implement getBlacklistedTrackers
  LOG.warn("getBlacklistedTrackers - Not implemented yet");
  return new TaskTrackerInfo[0];
}
 
Example #15
Source File: YARNRunner.java    From tez with Apache License 2.0 4 votes vote down vote up
@Override
public TaskTrackerInfo[] getBlacklistedTrackers() throws IOException,
    InterruptedException {
  return resMgrDelegate.getBlacklistedTrackers();
}
 
Example #16
Source File: YARNRunner.java    From incubator-tez with Apache License 2.0 4 votes vote down vote up
@Override
public TaskTrackerInfo[] getBlacklistedTrackers() throws IOException,
    InterruptedException {
  return resMgrDelegate.getBlacklistedTrackers();
}
 
Example #17
Source File: MockSimulatorJobTracker.java    From RDFS with Apache License 2.0 4 votes vote down vote up
@Override
public TaskTrackerInfo[] getBlacklistedTrackers() throws IOException,
    InterruptedException {
  throw new UnsupportedOperationException();
}
 
Example #18
Source File: MockSimulatorJobTracker.java    From RDFS with Apache License 2.0 4 votes vote down vote up
@Override
public TaskTrackerInfo[] getActiveTrackers() throws IOException,
    InterruptedException {
  throw new UnsupportedOperationException();
}
 
Example #19
Source File: HadoopClientProtocol.java    From ignite with Apache License 2.0 4 votes vote down vote up
/** {@inheritDoc} */
@Override public TaskTrackerInfo[] getBlacklistedTrackers() throws IOException, InterruptedException {
    return new TaskTrackerInfo[0];
}
 
Example #20
Source File: HadoopClientProtocol.java    From ignite with Apache License 2.0 4 votes vote down vote up
/** {@inheritDoc} */
@Override public TaskTrackerInfo[] getActiveTrackers() throws IOException, InterruptedException {
    return new TaskTrackerInfo[0];
}
 
Example #21
Source File: ResourceMgrDelegate.java    From tez with Apache License 2.0 4 votes vote down vote up
public TaskTrackerInfo[] getBlacklistedTrackers() throws IOException,
    InterruptedException {
  // TODO: Implement getBlacklistedTrackers
  LOG.warn("getBlacklistedTrackers - Not implemented yet");
  return new TaskTrackerInfo[0];
}
 
Example #22
Source File: YARNRunner.java    From tez with Apache License 2.0 4 votes vote down vote up
@Override
public TaskTrackerInfo[] getActiveTrackers() throws IOException,
    InterruptedException {
  return resMgrDelegate.getActiveTrackers();
}
 
Example #23
Source File: LocalJobRunner.java    From big-c with Apache License 2.0 4 votes vote down vote up
/** 
 * Get all blacklisted trackers in cluster. 
 * @return array of TaskTrackerInfo
 */
public TaskTrackerInfo[] getBlacklistedTrackers() 
    throws IOException, InterruptedException {
  return new TaskTrackerInfo[0];
}
 
Example #24
Source File: LocalJobRunner.java    From big-c with Apache License 2.0 4 votes vote down vote up
/** 
 * Get all active trackers in cluster. 
 * @return array of TaskTrackerInfo
 */
public TaskTrackerInfo[] getActiveTrackers() 
    throws IOException, InterruptedException {
  return new TaskTrackerInfo[0];
}
 
Example #25
Source File: YARNRunner.java    From big-c with Apache License 2.0 4 votes vote down vote up
@Override
public TaskTrackerInfo[] getBlacklistedTrackers() throws IOException,
    InterruptedException {
  return resMgrDelegate.getBlacklistedTrackers();
}
 
Example #26
Source File: YARNRunner.java    From big-c with Apache License 2.0 4 votes vote down vote up
@Override
public TaskTrackerInfo[] getActiveTrackers() throws IOException,
    InterruptedException {
  return resMgrDelegate.getActiveTrackers();
}
 
Example #27
Source File: ResourceMgrDelegate.java    From big-c with Apache License 2.0 4 votes vote down vote up
public TaskTrackerInfo[] getBlacklistedTrackers() throws IOException,
    InterruptedException {
  // TODO: Implement getBlacklistedTrackers
  LOG.warn("getBlacklistedTrackers - Not implemented yet");
  return new TaskTrackerInfo[0];
}
 
Example #28
Source File: LocalJobRunner.java    From hadoop with Apache License 2.0 4 votes vote down vote up
/** 
 * Get all blacklisted trackers in cluster. 
 * @return array of TaskTrackerInfo
 */
public TaskTrackerInfo[] getBlacklistedTrackers() 
    throws IOException, InterruptedException {
  return new TaskTrackerInfo[0];
}
 
Example #29
Source File: LocalJobRunner.java    From hadoop with Apache License 2.0 4 votes vote down vote up
/** 
 * Get all active trackers in cluster. 
 * @return array of TaskTrackerInfo
 */
public TaskTrackerInfo[] getActiveTrackers() 
    throws IOException, InterruptedException {
  return new TaskTrackerInfo[0];
}
 
Example #30
Source File: YARNRunner.java    From hadoop with Apache License 2.0 4 votes vote down vote up
@Override
public TaskTrackerInfo[] getBlacklistedTrackers() throws IOException,
    InterruptedException {
  return resMgrDelegate.getBlacklistedTrackers();
}