Skip to content

Commit 0d76654

Browse files
committed
Reapply "HBASE-12976 Set default value for hbase.client.scanner.max.result.size." in 1.1 and 2.0 only
This reverts commit 64589ab.
1 parent 2bf904f commit 0d76654

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,9 +624,9 @@ public static enum Modify {
624624
* Note that when a single row is larger than this limit the row is still
625625
* returned completely.
626626
*
627-
* The default value is unlimited.
627+
* The default value is 2MB.
628628
*/
629-
public static final long DEFAULT_HBASE_CLIENT_SCANNER_MAX_RESULT_SIZE = Long.MAX_VALUE;
629+
public static final long DEFAULT_HBASE_CLIENT_SCANNER_MAX_RESULT_SIZE = 2 * 1024 * 1024;
630630

631631
/**
632632
* Parameter name for client pause value, used mostly as value to wait

hbase-common/src/main/resources/hbase-default.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,6 +1289,16 @@ possible configurations would overwhelm and obscure the important.
12891289
</description>
12901290
</property>
12911291

1292+
<property>
1293+
<name>hbase.client.scanner.max.result.size</name>
1294+
<value>2097152</value>
1295+
<description>Maximum number of bytes returned when calling a scanner's next method.
1296+
Note that when a single row is larger than this limit the row is still returned completely.
1297+
The default value is 2MB, which is good for 1ge networks.
1298+
With faster and/or high latency networks this value should be increased.
1299+
</description>
1300+
</property>
1301+
12921302
<property>
12931303
<name>hbase.status.published</name>
12941304
<value>false</value>

0 commit comments

Comments
 (0)