Skip to content

Commit

Permalink
Improve bulk load performance by using a combiner.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Hale committed Oct 25, 2023
1 parent 7c4339d commit e7a5404
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,7 @@ protected int run(CommandLine cmd) throws Exception {
tableDesc = hTable.getDescriptor();
RegionLocator regionLocator = conn.getRegionLocator(tableDesc.getTableName());
HFileOutputFormat2.configureIncrementalLoad(job, tableDesc, regionLocator);
job.setCombinerClass(job.getReducerClass());
}
try (Keyspace keyspace = HalyardTableUtils.getKeyspace(getConf(), conn, tableDesc.getTableName(), null, null)) {
try (KeyspaceConnection ksConn = keyspace.getConnection()) {
Expand Down

0 comments on commit e7a5404

Please sign in to comment.