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


Java TaskID.toString方法代码示例

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


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

示例1: assignTo

import org.apache.hadoop.mapreduce.TaskID; //导入方法依赖的package包/类
/**
 * Reassigns the chunk to a specified Map-Task, for consumption.
 *
 * @param taskId The Map-Task to which a the chunk is to be reassigned.
 * @throws IOException Exception on failure to reassign.
 */
public void assignTo(TaskID taskId) throws IOException {
  Path newPath = new Path(chunkRootPath, taskId.toString());
  if (!fs.rename(chunkFilePath, newPath)) {
    LOG.warn("{} could not be assigned to {}", chunkFilePath, taskId);
  }
}
 
开发者ID:HotelsDotCom,项目名称:circus-train,代码行数:13,代码来源:DynamicInputChunk.java

示例2: TaskStartedEvent

import org.apache.hadoop.mapreduce.TaskID; //导入方法依赖的package包/类
/**
 * Create an event to record start of a task
 * @param id Task Id
 * @param startTime Start time of the task
 * @param taskType Type of the task
 * @param splitLocations Split locations, applicable for map tasks
 */
public TaskStartedEvent(TaskID id, long startTime, 
    TaskType taskType, String splitLocations) {
  datum.taskid = new Utf8(id.toString());
  datum.splitLocations = new Utf8(splitLocations);
  datum.startTime = startTime;
  datum.taskType = new Utf8(taskType.name());
}
 
开发者ID:naver,项目名称:hadoop,代码行数:15,代码来源:TaskStartedEvent.java

示例3: assignTo

import org.apache.hadoop.mapreduce.TaskID; //导入方法依赖的package包/类
/**
 * Reassigns the chunk to a specified Map-Task, for consumption.
 * @param taskId The Map-Task to which a the chunk is to be reassigned.
 * @throws IOException Exception on failure to reassign.
 */
public void assignTo(TaskID taskId) throws IOException {
  Path newPath = new Path(chunkRootPath, taskId.toString());
  if (!fs.rename(chunkFilePath, newPath)) {
    LOG.warn(chunkFilePath + " could not be assigned to " + taskId);
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:12,代码来源:DynamicInputChunk.java

示例4: assignTo

import org.apache.hadoop.mapreduce.TaskID; //导入方法依赖的package包/类
/**
 * Reassigns the chunk to a specified Map-Task, for consumption.
 * @param taskId The Map-Task to which a the chunk is to be reassigned.
 * @throws IOException Exception on failure to reassign.
 */
public void assignTo(TaskID taskId) throws IOException {
  Path newPath = new Path(chunkContext.getChunkRootPath(), taskId.toString());
  if (!chunkContext.getFs().rename(chunkFilePath, newPath)) {
    LOG.warn(chunkFilePath + " could not be assigned to " + taskId);
  }
}
 
开发者ID:aliyun-beta,项目名称:aliyun-oss-hadoop-fs,代码行数:12,代码来源:DynamicInputChunk.java

示例5: TaskUpdatedEvent

import org.apache.hadoop.mapreduce.TaskID; //导入方法依赖的package包/类
/**
 * Create an event to record task updates
 * @param id Id of the task
 * @param finishTime Finish time of the task
 */
public TaskUpdatedEvent(TaskID id, long finishTime) {
  datum.taskid = new Utf8(id.toString());
  datum.finishTime = finishTime;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:10,代码来源:TaskUpdatedEvent.java


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