HBASE-10413 addendum makes split length readable

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1567232 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2014-02-11 17:43:20 +00:00
parent ed423e2deb
commit eb2281d94a
1 changed files with 2 additions and 1 deletions

View File

@ -50,6 +50,7 @@ import org.apache.hadoop.mapreduce.JobContext;
import org.apache.hadoop.mapreduce.RecordReader; import org.apache.hadoop.mapreduce.RecordReader;
import org.apache.hadoop.mapreduce.TaskAttemptContext; import org.apache.hadoop.mapreduce.TaskAttemptContext;
import org.apache.hadoop.net.DNS; import org.apache.hadoop.net.DNS;
import org.apache.hadoop.util.StringUtils;
/** /**
* A base for {@link TableInputFormat}s. Receives a {@link HTable}, an * A base for {@link TableInputFormat}s. Receives a {@link HTable}, an
@ -123,7 +124,7 @@ extends InputFormat<ImmutableBytesWritable, Result> {
" the task's full log for more details."); " the task's full log for more details.");
} }
TableSplit tSplit = (TableSplit) split; TableSplit tSplit = (TableSplit) split;
LOG.info("Input split length: " + tSplit.getLength() + " bytes."); LOG.info("Input split length: " + StringUtils.humanReadableInt(tSplit.getLength()) + " bytes.");
TableRecordReader trr = this.tableRecordReader; TableRecordReader trr = this.tableRecordReader;
// if no table record reader was provided use default // if no table record reader was provided use default
if (trr == null) { if (trr == null) {