HBASE-26273 Force ReadType.STREAM when the user does not explicitly set a ReadType...
commit86bc640c17c71f16926251ba0bc4326caf8bbed0
authorJosh Elser <elserj@apache.org>
Fri, 10 Sep 2021 20:24:13 +0000 (10 16:24 -0400)
committerJosh Elser <elserj@apache.org>
Mon, 13 Sep 2021 23:09:35 +0000 (13 19:09 -0400)
tree36615bcd9648c8bd07efab2dafacca7328019865
parentd26bcaaa915901970c4ddd56a9f1e601fedb29c4
HBASE-26273 Force ReadType.STREAM when the user does not explicitly set a ReadType on the Scan for a Snapshot-based Job

HBase 2 moved over Scans to use PREAD by default instead of STREAM like
HBase 1. In the context of a MapReduce job, we can generally expect that
clients using the InputFormat (batch job) would be reading most of the
data for a job. Cater to them, but still give users who want PREAD the
ability to do so.

Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org>
hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormatImpl.java
hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/mapreduce/TestTableSnapshotInputFormat.java