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

Commit

Permalink
main/src/main/java/com/airbnb/reair/batch/hive/MetastoreReplicationJo…
Browse files Browse the repository at this point in the history
…b.java: Add number of reducers from config for Step1 runMetaStoreCompareJob
  • Loading branch information
uzshao committed Jan 12, 2017
1 parent cd649c8 commit 30434f4
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 30434f4

Please sign in to comment.