You can use PageFilter for this . When you create an instance of PageFilter, you specify the pageSize parameter, which determines how many lines per page should be returned.
Filter Filter = new PageFilter (10);
And if you want to do this through the HBase shell, you can use LIMIT with a SCAN request:
scan table, LIMIT => 10
source share