scan的setBatch()用法 val conf = HBaseConfiguration.create() val table: Table = ConnectionFactory.createConnection(conf).getTable(TableName.valueOf(Bytes.toBytes("user"))) val scan = new Scan() scan.addColumn(Bytes.toBytes("info"),Bytes.to…
hbase读数据用scan,读数据加速的配置参数为: Scan scan = new Scan(); scan.setCaching(500); // 1 is the default in Scan, which will be bad for MapReduce jobs scan.setCacheBlocks(false); // don't set to true for MR jobs 其中, public Scan setCacheBlocks(boolean cacheBlocks…