Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
In Batch replication, add number of reducers from config for Step 1 -…
Browse files Browse the repository at this point in the history
… runMetaStoreCompareJob.
  • Loading branch information
uzshao committed Jan 13, 2017
1 parent 3849bc3 commit 5bb257d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,10 @@ private int runMetastoreCompareJob(Path output)
FileOutputFormat.setOutputPath(job, output);
FileOutputFormat.setOutputCompressorClass(job, GzipCodec.class);

job.setNumReduceTasks(getConf().getInt(
ConfigurationKeys.BATCH_JOB_METASTORE_PARALLELISM,
150));

boolean success = job.waitForCompletion(true);

return success ? 0 : 1;
Expand Down Expand Up @@ -523,10 +527,6 @@ private int runCommitChangeJob(Path input, Path output)
FileOutputFormat.setOutputPath(job, output);
FileOutputFormat.setOutputCompressorClass(job, GzipCodec.class);

job.setNumReduceTasks(getConf().getInt(
ConfigurationKeys.BATCH_JOB_METASTORE_PARALLELISM,
150));

boolean success = job.waitForCompletion(true);

if (success) {
Expand Down

0 comments on commit 5bb257d

Please sign in to comment.