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

MetastoreReplicationJob: Add number of reducers from config for Step1 runMetaStoreCompareJob #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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