hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1567232 - /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableInputFormatBase.java
Date Tue, 11 Feb 2014 17:43:20 GMT
Author: tedyu
Date: Tue Feb 11 17:43:20 2014
New Revision: 1567232

URL: http://svn.apache.org/r1567232
Log:
HBASE-10413 addendum makes split length readable


Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableInputFormatBase.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableInputFormatBase.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableInputFormatBase.java?rev=1567232&r1=1567231&r2=1567232&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableInputFormatBase.java
(original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableInputFormatBase.java
Tue Feb 11 17:43:20 2014
@@ -50,6 +50,7 @@ import org.apache.hadoop.mapreduce.JobCo
 import org.apache.hadoop.mapreduce.RecordReader;
 import org.apache.hadoop.mapreduce.TaskAttemptContext;
 import org.apache.hadoop.net.DNS;
+import org.apache.hadoop.util.StringUtils;
 
 /**
  * A base for {@link TableInputFormat}s. Receives a {@link HTable}, an
@@ -123,7 +124,7 @@ extends InputFormat<ImmutableBytesWritab
           " the task's full log for more details.");
     }
     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;
     // if no table record reader was provided use default
     if (trr == null) {



Mime
View raw message