Repository: hive Updated Branches: refs/heads/branch-2 db9752444 -> d81d17fa2
HIVE-19344 : Change default value of msck.repair.batch.size (Vihang Karajgaonkar reviewed by Sahil Takiar) Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/d81d17fa Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/d81d17fa Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/d81d17fa Branch: refs/heads/branch-2 Commit: d81d17fa20c38c299d5969614be6ea3f9c84119c Parents: db97524 Author: Vihang Karajgaonkar <vih...@cloudera.com> Authored: Sun May 6 14:16:56 2018 -0700 Committer: Vihang Karajgaonkar <vih...@cloudera.com> Committed: Sun May 6 14:18:39 2018 -0700 ---------------------------------------------------------------------- common/src/java/org/apache/hadoop/hive/conf/HiveConf.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/d81d17fa/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java ---------------------------------------------------------------------- diff --git a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java b/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java index df2aee8..53dfdd9 100644 --- a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java +++ b/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java @@ -3355,12 +3355,12 @@ public class HiveConf extends Configuration { "exception) is the default; 'skip' will skip the invalid directories and still repair the" + " others; 'ignore' will skip the validation (legacy behavior, causes bugs in many cases)"), HIVE_MSCK_REPAIR_BATCH_SIZE( - "hive.msck.repair.batch.size", 0, + "hive.msck.repair.batch.size", 3000, "Batch size for the msck repair command. If the value is greater than zero,\n " + "it will execute batch wise with the configured batch size. In case of errors while\n" + "adding unknown partitions the batch size is automatically reduced by half in the subsequent\n" - + "retry attempt. The default value is zero which means it will execute directly (not batch wise)"), - HIVE_MSCK_REPAIR_BATCH_MAX_RETRIES("hive.msck.repair.batch.max.retries", 0, + + "retry attempt. The default value is 3000 which means it will execute in the batches of 3000."), + HIVE_MSCK_REPAIR_BATCH_MAX_RETRIES("hive.msck.repair.batch.max.retries", 4, "Maximum number of retries for the msck repair command when adding unknown partitions.\n " + "If the value is greater than zero it will retry adding unknown partitions until the maximum\n" + "number of attempts is reached or batch size is reduced to 0, whichever is earlier.\n"