• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ProgressSplitsBlock类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.apache.hadoop.mapred.ProgressSplitsBlock的典型用法代码示例。如果您正苦于以下问题:Java ProgressSplitsBlock类的具体用法?Java ProgressSplitsBlock怎么用?Java ProgressSplitsBlock使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



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

示例1:

import org.apache.hadoop.mapred.ProgressSplitsBlock; //导入依赖的package包/类
/**
 * Create an event to record completion of a reduce attempt
 * @param id Attempt Id
 * @param taskType Type of task
 * @param taskStatus Status of the task
 * @param shuffleFinishTime Finish time of the shuffle phase
 * @param sortFinishTime Finish time of the sort phase
 * @param finishTime Finish time of the attempt
 * @param hostname Name of the host where the attempt executed
 * @param port RPC port for the tracker host.
 * @param rackName Name of the rack where the attempt executed
 * @param state State of the attempt
 * @param counters Counters for the attempt
 * @param allSplits the "splits", or a pixelated graph of various
 *        measurable worker node state variables against progress.
 *        Currently there are four; wallclock time, CPU time,
 *        virtual memory and physical memory.  
 */
public ReduceAttemptFinishedEvent
  (TaskAttemptID id, TaskType taskType, String taskStatus, 
   long shuffleFinishTime, long sortFinishTime, long finishTime,
   String hostname, int port,  String rackName, String state, 
   Counters counters, int[][] allSplits) {
  this.attemptId = id;
  this.taskType = taskType;
  this.taskStatus = taskStatus;
  this.shuffleFinishTime = shuffleFinishTime;
  this.sortFinishTime = sortFinishTime;
  this.finishTime = finishTime;
  this.hostname = hostname;
  this.rackName = rackName;
  this.port = port;
  this.state = state;
  this.counters = counters;
  this.allSplits = allSplits;
  this.clockSplits = ProgressSplitsBlock.arrayGetWallclockTime(allSplits);
  this.cpuUsages = ProgressSplitsBlock.arrayGetCPUTime(allSplits);
  this.gpuUsages = ProgressSplitsBlock.arrayGetGPUTime(allSplits);
  this.vMemKbytes = ProgressSplitsBlock.arrayGetVMemKbytes(allSplits);
  this.physMemKbytes = ProgressSplitsBlock.arrayGetPhysMemKbytes(allSplits);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:42,代码来源:ReduceAttemptFinishedEvent.java


示例2:

import org.apache.hadoop.mapred.ProgressSplitsBlock; //导入依赖的package包/类
/** 
 * Create an event for successful completion of map attempts
 * @param id Task Attempt ID
 * @param taskType Type of the task
 * @param taskStatus Status of the task
 * @param mapFinishTime Finish time of the map phase
 * @param finishTime Finish time of the attempt
 * @param hostname Name of the host where the map executed
 * @param port RPC port for the tracker host.
 * @param rackName Name of the rack where the map executed
 * @param state State string for the attempt
 * @param counters Counters for the attempt
 * @param allSplits the "splits", or a pixelated graph of various
 *        measurable worker node state variables against progress.
 *        Currently there are four; wallclock time, CPU time,
 *        virtual memory and physical memory. 
 *
 *        If you have no splits data, code {@code null} for this
 *        parameter. 
 */
public MapAttemptFinishedEvent
    (TaskAttemptID id, TaskType taskType, String taskStatus, 
     long mapFinishTime, long finishTime, String hostname, int port, 
     String rackName, String state, Counters counters, int[][] allSplits) {
  this.attemptId = id;
  this.taskType = taskType;
  this.taskStatus = taskStatus;
  this.mapFinishTime = mapFinishTime;
  this.finishTime = finishTime;
  this.hostname = hostname;
  this.rackName = rackName;
  this.port = port;
  this.state = state;
  this.counters = counters;
  this.allSplits = allSplits;
  this.clockSplits = ProgressSplitsBlock.arrayGetWallclockTime(allSplits);
  this.cpuUsages = ProgressSplitsBlock.arrayGetCPUTime(allSplits);
  this.gpuUsages = ProgressSplitsBlock.arrayGetGPUTime(allSplits);
  this.vMemKbytes = ProgressSplitsBlock.arrayGetVMemKbytes(allSplits);
  this.physMemKbytes = ProgressSplitsBlock.arrayGetPhysMemKbytes(allSplits);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:42,代码来源:MapAttemptFinishedEvent.java


示例3:

import org.apache.hadoop.mapred.ProgressSplitsBlock; //导入依赖的package包/类
/**
 * Create an event to record completion of a reduce attempt
 * @param id Attempt Id
 * @param taskType Type of task
 * @param taskStatus Status of the task
 * @param shuffleFinishTime Finish time of the shuffle phase
 * @param sortFinishTime Finish time of the sort phase
 * @param finishTime Finish time of the attempt
 * @param hostname Name of the host where the attempt executed
 * @param port RPC port for the tracker host.
 * @param rackName Name of the rack where the attempt executed
 * @param state State of the attempt
 * @param counters Counters for the attempt
 * @param allSplits the "splits", or a pixelated graph of various
 *        measurable worker node state variables against progress.
 *        Currently there are four; wallclock time, CPU time,
 *        virtual memory and physical memory.  
 */
public ReduceAttemptFinishedEvent
  (TaskAttemptID id, TaskType taskType, String taskStatus, 
   long shuffleFinishTime, long sortFinishTime, long finishTime,
   String hostname, int port,  String rackName, String state, 
   Counters counters, int[][] allSplits) {
  this.attemptId = id;
  this.taskType = taskType;
  this.taskStatus = taskStatus;
  this.shuffleFinishTime = shuffleFinishTime;
  this.sortFinishTime = sortFinishTime;
  this.finishTime = finishTime;
  this.hostname = hostname;
  this.rackName = rackName;
  this.port = port;
  this.state = state;
  this.counters = counters;
  this.allSplits = allSplits;
  this.clockSplits = ProgressSplitsBlock.arrayGetWallclockTime(allSplits);
  this.cpuUsages = ProgressSplitsBlock.arrayGetCPUTime(allSplits);
  this.vMemKbytes = ProgressSplitsBlock.arrayGetVMemKbytes(allSplits);
  this.physMemKbytes = ProgressSplitsBlock.arrayGetPhysMemKbytes(allSplits);
}
 
开发者ID:aliyun-beta,项目名称:aliyun-oss-hadoop-fs,代码行数:41,代码来源:ReduceAttemptFinishedEvent.java


示例4:

import org.apache.hadoop.mapred.ProgressSplitsBlock; //导入依赖的package包/类
/** 
 * Create an event to record the unsuccessful completion of attempts
 * @param id Attempt ID
 * @param taskType Type of the task
 * @param status Status of the attempt
 * @param finishTime Finish time of the attempt
 * @param hostname Name of the host where the attempt executed
 * @param port rpc port for for the tracker
 * @param rackName Name of the rack where the attempt executed
 * @param error Error string
 * @param counters Counters for the attempt
 * @param allSplits the "splits", or a pixelated graph of various
 *        measurable worker node state variables against progress.
 *        Currently there are four; wallclock time, CPU time,
 *        virtual memory and physical memory.  
 */
public TaskAttemptUnsuccessfulCompletionEvent
     (TaskAttemptID id, TaskType taskType,
      String status, long finishTime,
      String hostname, int port, String rackName,
      String error, Counters counters, int[][] allSplits) {
  this.attemptId = id;
  this.taskType = taskType;
  this.status = status;
  this.finishTime = finishTime;
  this.hostname = hostname;
  this.port = port;
  this.rackName = rackName;
  this.error = error;
  this.counters = counters;
  this.allSplits = allSplits;
  this.clockSplits =
      ProgressSplitsBlock.arrayGetWallclockTime(allSplits);
  this.cpuUsages =
      ProgressSplitsBlock.arrayGetCPUTime(allSplits);
  this.vMemKbytes =
      ProgressSplitsBlock.arrayGetVMemKbytes(allSplits);
  this.physMemKbytes =
      ProgressSplitsBlock.arrayGetPhysMemKbytes(allSplits);
}
 
开发者ID:aliyun-beta,项目名称:aliyun-oss-hadoop-fs,代码行数:41,代码来源:TaskAttemptUnsuccessfulCompletionEvent.java


示例5:

import org.apache.hadoop.mapred.ProgressSplitsBlock; //导入依赖的package包/类
/** 
 * Create an event for successful completion of map attempts
 * @param id Task Attempt ID
 * @param taskType Type of the task
 * @param taskStatus Status of the task
 * @param mapFinishTime Finish time of the map phase
 * @param finishTime Finish time of the attempt
 * @param hostname Name of the host where the map executed
 * @param port RPC port for the tracker host.
 * @param rackName Name of the rack where the map executed
 * @param state State string for the attempt
 * @param counters Counters for the attempt
 * @param allSplits the "splits", or a pixelated graph of various
 *        measurable worker node state variables against progress.
 *        Currently there are four; wallclock time, CPU time,
 *        virtual memory and physical memory. 
 *
 *        If you have no splits data, code {@code null} for this
 *        parameter. 
 */
public MapAttemptFinishedEvent
    (TaskAttemptID id, TaskType taskType, String taskStatus, 
     long mapFinishTime, long finishTime, String hostname, int port, 
     String rackName, String state, Counters counters, int[][] allSplits) {
  this.attemptId = id;
  this.taskType = taskType;
  this.taskStatus = taskStatus;
  this.mapFinishTime = mapFinishTime;
  this.finishTime = finishTime;
  this.hostname = hostname;
  this.rackName = rackName;
  this.port = port;
  this.state = state;
  this.counters = counters;
  this.allSplits = allSplits;
  this.clockSplits = ProgressSplitsBlock.arrayGetWallclockTime(allSplits);
  this.cpuUsages = ProgressSplitsBlock.arrayGetCPUTime(allSplits);
  this.vMemKbytes = ProgressSplitsBlock.arrayGetVMemKbytes(allSplits);
  this.physMemKbytes = ProgressSplitsBlock.arrayGetPhysMemKbytes(allSplits);
}
 
开发者ID:aliyun-beta,项目名称:aliyun-oss-hadoop-fs,代码行数:41,代码来源:MapAttemptFinishedEvent.java


示例6: getDatum

import org.apache.hadoop.mapred.ProgressSplitsBlock; //导入依赖的package包/类
public Object getDatum() {
  if (datum == null) {
    datum = new ReduceAttemptFinished();
    datum.taskid = new Utf8(attemptId.getTaskID().toString());
    datum.attemptId = new Utf8(attemptId.toString());
    datum.taskType = new Utf8(taskType.name());
    datum.taskStatus = new Utf8(taskStatus);
    datum.shuffleFinishTime = shuffleFinishTime;
    datum.sortFinishTime = sortFinishTime;
    datum.finishTime = finishTime;
    datum.hostname = new Utf8(hostname);
    datum.port = port;
    if (rackName != null) {
      datum.rackname = new Utf8(rackName);
    }
    datum.state = new Utf8(state);
    datum.counters = EventWriter.toAvro(counters);

    datum.clockSplits = AvroArrayUtils.toAvro(ProgressSplitsBlock
      .arrayGetWallclockTime(allSplits));
    datum.cpuUsages = AvroArrayUtils.toAvro(ProgressSplitsBlock
      .arrayGetCPUTime(allSplits));
    datum.gpuUsages = AvroArrayUtils.toAvro(ProgressSplitsBlock
      .arrayGetGPUTime(allSplits));
    datum.vMemKbytes = AvroArrayUtils.toAvro(ProgressSplitsBlock
      .arrayGetVMemKbytes(allSplits));
    datum.physMemKbytes = AvroArrayUtils.toAvro(ProgressSplitsBlock
      .arrayGetPhysMemKbytes(allSplits));
  }
  return datum;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:32,代码来源:ReduceAttemptFinishedEvent.java


示例7:

import org.apache.hadoop.mapred.ProgressSplitsBlock; //导入依赖的package包/类
/** 
 * Create an event to record the unsuccessful completion of attempts
 * @param id Attempt ID
 * @param taskType Type of the task
 * @param status Status of the attempt
 * @param finishTime Finish time of the attempt
 * @param hostname Name of the host where the attempt executed
 * @param port rpc port for for the tracker
 * @param rackName Name of the rack where the attempt executed
 * @param error Error string
 * @param counters Counters for the attempt
 * @param allSplits the "splits", or a pixelated graph of various
 *        measurable worker node state variables against progress.
 *        Currently there are four; wallclock time, CPU time,
 *        virtual memory and physical memory.  
 */
public TaskAttemptUnsuccessfulCompletionEvent
     (TaskAttemptID id, TaskType taskType,
      String status, long finishTime,
      String hostname, int port, String rackName,
      String error, Counters counters, int[][] allSplits) {
  this.attemptId = id;
  this.taskType = taskType;
  this.status = status;
  this.finishTime = finishTime;
  this.hostname = hostname;
  this.port = port;
  this.rackName = rackName;
  this.error = error;
  this.counters = counters;
  this.allSplits = allSplits;
  this.clockSplits =
      ProgressSplitsBlock.arrayGetWallclockTime(allSplits);
  this.cpuUsages =
      ProgressSplitsBlock.arrayGetCPUTime(allSplits);
  this.gpuUsages =
      ProgressSplitsBlock.arrayGetGPUTime(allSplits);
  this.vMemKbytes =
      ProgressSplitsBlock.arrayGetVMemKbytes(allSplits);
  this.physMemKbytes =
      ProgressSplitsBlock.arrayGetPhysMemKbytes(allSplits);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:43,代码来源:TaskAttemptUnsuccessfulCompletionEvent.java


示例8: getDatum

import org.apache.hadoop.mapred.ProgressSplitsBlock; //导入依赖的package包/类
public Object getDatum() {
  if(datum == null) {
    datum = new TaskAttemptUnsuccessfulCompletion();
    datum.taskid = new Utf8(attemptId.getTaskID().toString());
    datum.taskType = new Utf8(taskType.name());
    datum.attemptId = new Utf8(attemptId.toString());
    datum.finishTime = finishTime;
    datum.hostname = new Utf8(hostname);
    if (rackName != null) {
      datum.rackname = new Utf8(rackName);
    }
    datum.port = port;
    datum.error = new Utf8(error);
    datum.status = new Utf8(status);

    datum.counters = EventWriter.toAvro(counters);

    datum.clockSplits = AvroArrayUtils.toAvro(ProgressSplitsBlock
        .arrayGetWallclockTime(allSplits));
    datum.cpuUsages = AvroArrayUtils.toAvro(ProgressSplitsBlock
        .arrayGetCPUTime(allSplits));
    datum.gpuUsages = AvroArrayUtils.toAvro(ProgressSplitsBlock
        .arrayGetGPUTime(allSplits));
    datum.vMemKbytes = AvroArrayUtils.toAvro(ProgressSplitsBlock
        .arrayGetVMemKbytes(allSplits));
    datum.physMemKbytes = AvroArrayUtils.toAvro(ProgressSplitsBlock
        .arrayGetPhysMemKbytes(allSplits));
  }
  return datum;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:31,代码来源:TaskAttemptUnsuccessfulCompletionEvent.java


示例9: getDatum

import org.apache.hadoop.mapred.ProgressSplitsBlock; //导入依赖的package包/类
public Object getDatum() {
  if (datum == null) {
    datum = new MapAttemptFinished();
    datum.taskid = new Utf8(attemptId.getTaskID().toString());
    datum.attemptId = new Utf8(attemptId.toString());
    datum.taskType = new Utf8(taskType.name());
    datum.taskStatus = new Utf8(taskStatus);
    datum.mapFinishTime = mapFinishTime;
    datum.finishTime = finishTime;
    datum.hostname = new Utf8(hostname);
    datum.port = port;
    if (rackName != null) {
      datum.rackname = new Utf8(rackName);
    }
    datum.state = new Utf8(state);
    datum.counters = EventWriter.toAvro(counters);

    datum.clockSplits = AvroArrayUtils.toAvro(ProgressSplitsBlock
      .arrayGetWallclockTime(allSplits));
    datum.cpuUsages = AvroArrayUtils.toAvro(ProgressSplitsBlock
      .arrayGetCPUTime(allSplits));
    datum.gpuUsages = AvroArrayUtils.toAvro(ProgressSplitsBlock
      .arrayGetGPUTime(allSplits));
    datum.vMemKbytes = AvroArrayUtils.toAvro(ProgressSplitsBlock
      .arrayGetVMemKbytes(allSplits));
    datum.physMemKbytes = AvroArrayUtils.toAvro(ProgressSplitsBlock
      .arrayGetPhysMemKbytes(allSplits));
  }
  return datum;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:31,代码来源:MapAttemptFinishedEvent.java


示例10: getDatum

import org.apache.hadoop.mapred.ProgressSplitsBlock; //导入依赖的package包/类
public Object getDatum() {
  if (datum == null) {
    datum = new ReduceAttemptFinished();
    datum.setTaskid(new Utf8(attemptId.getTaskID().toString()));
    datum.setAttemptId(new Utf8(attemptId.toString()));
    datum.setTaskType(new Utf8(taskType.name()));
    datum.setTaskStatus(new Utf8(taskStatus));
    datum.setShuffleFinishTime(shuffleFinishTime);
    datum.setSortFinishTime(sortFinishTime);
    datum.setFinishTime(finishTime);
    datum.setHostname(new Utf8(hostname));
    datum.setPort(port);
    if (rackName != null) {
      datum.setRackname(new Utf8(rackName));
    }
    datum.setState(new Utf8(state));
    datum.setCounters(EventWriter.toAvro(counters));

    datum.setClockSplits(AvroArrayUtils.toAvro(ProgressSplitsBlock
        .arrayGetWallclockTime(allSplits)));
    datum.setCpuUsages(AvroArrayUtils.toAvro(ProgressSplitsBlock
        .arrayGetCPUTime(allSplits)));
    datum.setVMemKbytes(AvroArrayUtils.toAvro(ProgressSplitsBlock
        .arrayGetVMemKbytes(allSplits)));
    datum.setPhysMemKbytes(AvroArrayUtils.toAvro(ProgressSplitsBlock
        .arrayGetPhysMemKbytes(allSplits)));
  }
  return datum;
}
 
开发者ID:aliyun-beta,项目名称:aliyun-oss-hadoop-fs,代码行数:30,代码来源:ReduceAttemptFinishedEvent.java


示例11: getDatum

import org.apache.hadoop.mapred.ProgressSplitsBlock; //导入依赖的package包/类
public Object getDatum() {
  if(datum == null) {
    datum = new TaskAttemptUnsuccessfulCompletion();
    datum.setTaskid(new Utf8(attemptId.getTaskID().toString()));
    datum.setTaskType(new Utf8(taskType.name()));
    datum.setAttemptId(new Utf8(attemptId.toString()));
    datum.setFinishTime(finishTime);
    datum.setHostname(new Utf8(hostname));
    if (rackName != null) {
      datum.setRackname(new Utf8(rackName));
    }
    datum.setPort(port);
    datum.setError(new Utf8(error));
    datum.setStatus(new Utf8(status));

    datum.setCounters(EventWriter.toAvro(counters));

    datum.setClockSplits(AvroArrayUtils.toAvro(ProgressSplitsBlock
        .arrayGetWallclockTime(allSplits)));
    datum.setCpuUsages(AvroArrayUtils.toAvro(ProgressSplitsBlock
        .arrayGetCPUTime(allSplits)));
    datum.setVMemKbytes(AvroArrayUtils.toAvro(ProgressSplitsBlock
        .arrayGetVMemKbytes(allSplits)));
    datum.setPhysMemKbytes(AvroArrayUtils.toAvro(ProgressSplitsBlock
        .arrayGetPhysMemKbytes(allSplits)));
  }
  return datum;
}
 
开发者ID:aliyun-beta,项目名称:aliyun-oss-hadoop-fs,代码行数:29,代码来源:TaskAttemptUnsuccessfulCompletionEvent.java


示例12: getDatum

import org.apache.hadoop.mapred.ProgressSplitsBlock; //导入依赖的package包/类
public Object getDatum() {
  if (datum == null) {
    datum = new MapAttemptFinished();
    datum.setTaskid(new Utf8(attemptId.getTaskID().toString()));
    datum.setAttemptId(new Utf8(attemptId.toString()));
    datum.setTaskType(new Utf8(taskType.name()));
    datum.setTaskStatus(new Utf8(taskStatus));
    datum.setMapFinishTime(mapFinishTime);
    datum.setFinishTime(finishTime);
    datum.setHostname(new Utf8(hostname));
    datum.setPort(port);
    if (rackName != null) {
      datum.setRackname(new Utf8(rackName));
    }
    datum.setState(new Utf8(state));
    datum.setCounters(EventWriter.toAvro(counters));

    datum.setClockSplits(AvroArrayUtils.toAvro(ProgressSplitsBlock
        .arrayGetWallclockTime(allSplits)));
    datum.setCpuUsages(AvroArrayUtils.toAvro(ProgressSplitsBlock
        .arrayGetCPUTime(allSplits)));
    datum.setVMemKbytes(AvroArrayUtils.toAvro(ProgressSplitsBlock
        .arrayGetVMemKbytes(allSplits)));
    datum.setPhysMemKbytes(AvroArrayUtils.toAvro(ProgressSplitsBlock
        .arrayGetPhysMemKbytes(allSplits)));
  }
  return datum;
}
 
开发者ID:aliyun-beta,项目名称:aliyun-oss-hadoop-fs,代码行数:29,代码来源:MapAttemptFinishedEvent.java


示例13: getDatum

import org.apache.hadoop.mapred.ProgressSplitsBlock; //导入依赖的package包/类
public Object getDatum() {
  if (datum == null) {
    datum = new ReduceAttemptFinished();
    datum.taskid = new Utf8(attemptId.getTaskID().toString());
    datum.attemptId = new Utf8(attemptId.toString());
    datum.taskType = new Utf8(taskType.name());
    datum.taskStatus = new Utf8(taskStatus);
    datum.shuffleFinishTime = shuffleFinishTime;
    datum.sortFinishTime = sortFinishTime;
    datum.finishTime = finishTime;
    datum.hostname = new Utf8(hostname);
    datum.port = port;
    if (rackName != null) {
      datum.rackname = new Utf8(rackName);
    }
    datum.state = new Utf8(state);
    datum.counters = EventWriter.toAvro(counters);

    datum.clockSplits = AvroArrayUtils.toAvro(ProgressSplitsBlock
      .arrayGetWallclockTime(allSplits));
    datum.cpuUsages = AvroArrayUtils.toAvro(ProgressSplitsBlock
      .arrayGetCPUTime(allSplits));
    datum.vMemKbytes = AvroArrayUtils.toAvro(ProgressSplitsBlock
      .arrayGetVMemKbytes(allSplits));
    datum.physMemKbytes = AvroArrayUtils.toAvro(ProgressSplitsBlock
      .arrayGetPhysMemKbytes(allSplits));
  }
  return datum;
}
 
开发者ID:yncxcw,项目名称:big-c,代码行数:30,代码来源:ReduceAttemptFinishedEvent.java


示例14: getDatum

import org.apache.hadoop.mapred.ProgressSplitsBlock; //导入依赖的package包/类
public Object getDatum() {
  if(datum == null) {
    datum = new TaskAttemptUnsuccessfulCompletion();
    datum.taskid = new Utf8(attemptId.getTaskID().toString());
    datum.taskType = new Utf8(taskType.name());
    datum.attemptId = new Utf8(attemptId.toString());
    datum.finishTime = finishTime;
    datum.hostname = new Utf8(hostname);
    if (rackName != null) {
      datum.rackname = new Utf8(rackName);
    }
    datum.port = port;
    datum.error = new Utf8(error);
    datum.status = new Utf8(status);

    datum.counters = EventWriter.toAvro(counters);

    datum.clockSplits = AvroArrayUtils.toAvro(ProgressSplitsBlock
        .arrayGetWallclockTime(allSplits));
    datum.cpuUsages = AvroArrayUtils.toAvro(ProgressSplitsBlock
        .arrayGetCPUTime(allSplits));
    datum.vMemKbytes = AvroArrayUtils.toAvro(ProgressSplitsBlock
        .arrayGetVMemKbytes(allSplits));
    datum.physMemKbytes = AvroArrayUtils.toAvro(ProgressSplitsBlock
        .arrayGetPhysMemKbytes(allSplits));
  }
  return datum;
}
 
开发者ID:yncxcw,项目名称:big-c,代码行数:29,代码来源:TaskAttemptUnsuccessfulCompletionEvent.java


示例15: getDatum

import org.apache.hadoop.mapred.ProgressSplitsBlock; //导入依赖的package包/类
public Object getDatum() {
  if (datum == null) {
    datum = new MapAttemptFinished();
    datum.taskid = new Utf8(attemptId.getTaskID().toString());
    datum.attemptId = new Utf8(attemptId.toString());
    datum.taskType = new Utf8(taskType.name());
    datum.taskStatus = new Utf8(taskStatus);
    datum.mapFinishTime = mapFinishTime;
    datum.finishTime = finishTime;
    datum.hostname = new Utf8(hostname);
    datum.port = port;
    if (rackName != null) {
      datum.rackname = new Utf8(rackName);
    }
    datum.state = new Utf8(state);
    datum.counters = EventWriter.toAvro(counters);

    datum.clockSplits = AvroArrayUtils.toAvro(ProgressSplitsBlock
      .arrayGetWallclockTime(allSplits));
    datum.cpuUsages = AvroArrayUtils.toAvro(ProgressSplitsBlock
      .arrayGetCPUTime(allSplits));
    datum.vMemKbytes = AvroArrayUtils.toAvro(ProgressSplitsBlock
      .arrayGetVMemKbytes(allSplits));
    datum.physMemKbytes = AvroArrayUtils.toAvro(ProgressSplitsBlock
      .arrayGetPhysMemKbytes(allSplits));
  }
  return datum;
}
 
开发者ID:yncxcw,项目名称:big-c,代码行数:29,代码来源:MapAttemptFinishedEvent.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java MouseJointDef类代码示例发布时间:2022-05-22
下一篇:
Java ODatabase类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap