Support Questions
Find answers, ask questions, and share your expertise

Constrains on HBase scan results

New Contributor


I'm using an app that scans an HBase table (1.2.0-cdh5.14.2). I'm not limiting the results of the scan and i'm not using batch.


According to the Java API it says:


public Scan setMaxResultSize(long maxResultSize) 
Set the maximum result size. The default is -1; this means that no specific maximum result size
will be set for this scan, and the global configured value will be used instead (Defaults to unlimited)


Since i'm not setting the maxResultSize, and by default i'll get all the results no matter how big they are, and the default is unlimited, I wanted to know what are the hbase or cluster or hardward settings i should be looking as to the maximum amount of results i'll be able to bring back before the scan results blows up?


here's the partial code that does the scan:


Scan scan = new Scan(Bytes.toBytes(startRow), Bytes.toBytes(stopRow));

try(ResultScanner scanner = transactionTable.getScanner(scan)) {
	for (Result result : scanner) {
		try {
			result1 = result.getValue(CF_TEST, CQ_EX1);
			result2 = result.getValue(CF_TEST, CQ_EX2)));
			result3 = Bytes.toStringBinary(result.getRow());
		}catch(Exception e){
			//throw error