本文整理汇总了Java中org.apache.hadoop.mapreduce.TaskAttemptContext.setStatus方法的典型用法代码示例。如果您正苦于以下问题:Java TaskAttemptContext.setStatus方法的具体用法?Java TaskAttemptContext.setStatus怎么用?Java TaskAttemptContext.setStatus使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.hadoop.mapreduce.TaskAttemptContext
的用法示例。
在下文中一共展示了TaskAttemptContext.setStatus方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createRecordReader
import org.apache.hadoop.mapreduce.TaskAttemptContext; //导入方法依赖的package包/类
@Override
public RecordReader<AvroWrapper<T>, NullWritable> createRecordReader(
InputSplit split, TaskAttemptContext context) throws IOException,
InterruptedException {
context.setStatus(split.toString());
return new AvroRecordReader<T>();
}
示例2: createRecordReader
import org.apache.hadoop.mapreduce.TaskAttemptContext; //导入方法依赖的package包/类
public RecordReader<Void, Text> createRecordReader(
InputSplit genericSplit,
TaskAttemptContext context) throws IOException, InterruptedException {
context.setStatus(genericSplit.toString());
// cast as per example in TextInputFormat
return new SingleFastqRecordReader(context.getConfiguration(),
(FileSplit)genericSplit);
}
示例3: createRecordReader
import org.apache.hadoop.mapreduce.TaskAttemptContext; //导入方法依赖的package包/类
public RecordReader<LongWritable, Text> createRecordReader(
InputSplit genericSplit, TaskAttemptContext context)
throws IOException {
context.setStatus(genericSplit.toString());
return new LineRecordReader();
}
示例4: createRecordReader
import org.apache.hadoop.mapreduce.TaskAttemptContext; //导入方法依赖的package包/类
public RecordReader<Text, Text> createRecordReader(InputSplit genericSplit,
TaskAttemptContext context) throws IOException {
context.setStatus(genericSplit.toString());
return new KeyValueLineRecordReader(context.getConfiguration());
}
示例5: createRecordReader
import org.apache.hadoop.mapreduce.TaskAttemptContext; //导入方法依赖的package包/类
/** Create a record reader for the given split
* @param split file split
* @param context the task-attempt context
* @return RecordReader
*/
public RecordReader<K, V> createRecordReader(InputSplit split,
TaskAttemptContext context) throws IOException {
context.setStatus(split.toString());
return new FilterRecordReader<K, V>(context.getConfiguration());
}
示例6: createRecordReader
import org.apache.hadoop.mapreduce.TaskAttemptContext; //导入方法依赖的package包/类
public RecordReader<Text, Text> createRecordReader(InputSplit split,
TaskAttemptContext context) throws IOException {
context.setStatus(split.toString());
return new SequenceFileAsTextRecordReader();
}