Example usage for org.apache.hadoop.mapreduce TaskAttemptContext setStatus

List of usage examples for org.apache.hadoop.mapreduce TaskAttemptContext setStatus

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce TaskAttemptContext setStatus.

Prototype

public void setStatus(String msg);

Source Link

Document

Set the current status of the task to the given string.

Usage

From source file:org.godhuli.rhipe.RXSQTextAndTextIF.java

License:Apache License

public RecordReader createRecordReader(InputSplit split, TaskAttemptContext context) throws IOException {

    context.setStatus(split.toString());

    return new SequenceFileAsRHTextRecordReader();
}

From source file:org.godhuli.rhipe.RXTextInputFormat.java

License:Apache License

public RecordReader<RHNumeric, RHText> createRecordReader(InputSplit split, TaskAttemptContext context)
        throws IOException {
    context.setStatus(split.toString());
    return new RXLineRecordReader();
}

From source file:org.systemsbiology.xtandem.hadoop.NLineInputFormat.java

License:Apache License

public LineRecordReader createRecordReader(InputSplit genericSplit, TaskAttemptContext context)
        throws IOException {
    context.setStatus(genericSplit.toString());
    //    return new LineRecordReader(null, null);
    return new MyLineRecordReader();
}

From source file:wikiParser.mapReduce.util.KeyValueTextInputFormat.java

License:Apache License

public RecordReader createRecordReader(InputSplit genericSplit, TaskAttemptContext context) throws IOException {

    context.setStatus(genericSplit.toString());
    return new KeyValueLineRecordReader(context.getConfiguration());
}