This is an automated email from the ASF dual-hosted git repository.
prasanthj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push:
new cc8ba3a HIVE-21582: Prefix msck configs with metastore (Prasanth
Jayachandran reviewed by Jason Dere)
cc8ba3a is described below
commit cc8ba3aff76adfbc93770dc007461f59ec62b5d8
Author: Prasanth Jayachandran <[email protected]>
AuthorDate: Mon Apr 15 11:46:36 2019 -0700
HIVE-21582: Prefix msck configs with metastore (Prasanth Jayachandran
reviewed by Jason Dere)
---
ql/src/test/queries/clientpositive/partition_discovery.q | 6 +++---
.../org/apache/hadoop/hive/metastore/conf/MetastoreConf.java | 10 +++++-----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/ql/src/test/queries/clientpositive/partition_discovery.q
b/ql/src/test/queries/clientpositive/partition_discovery.q
index 7af9664..c85b6fd 100644
--- a/ql/src/test/queries/clientpositive/partition_discovery.q
+++ b/ql/src/test/queries/clientpositive/partition_discovery.q
@@ -42,13 +42,13 @@ dfs ${system:test.dfs.mkdir}
${system:test.warehouse.dir}/repairtable_n9/p1=c/p2
dfs -touchz ${system:test.warehouse.dir}/repairtable_n9/p1=a/p2=b/datafile;
dfs -touchz ${system:test.warehouse.dir}/repairtable_n9/p1=c/p2=d/datafile;
-set msck.repair.enable.partition.retention=false;
+set metastore.msck.repair.enable.partition.retention=false;
MSCK REPAIR TABLE default.repairtable_n9;
show partitions default.repairtable_n9;
!sleep 12;
-set msck.repair.enable.partition.retention=true;
+set metastore.msck.repair.enable.partition.retention=true;
-- msck does not drop partitions, so this still should be no-op
MSCK REPAIR TABLE default.repairtable_n9;
show partitions default.repairtable_n9;
@@ -65,7 +65,7 @@ dfs ${system:test.dfs.mkdir}
${system:test.warehouse.dir}/repairtable_n10/p1=c/p
dfs -touchz ${system:test.warehouse.dir}/repairtable_n10/p1=a/p2=b/datafile;
dfs -touchz ${system:test.warehouse.dir}/repairtable_n10/p1=c/p2=d/datafile;
-set msck.repair.enable.partition.retention=false;
+set metastore.msck.repair.enable.partition.retention=false;
!sleep 12;
MSCK REPAIR TABLE default.repairtable_n10;
show partitions default.repairtable_n10;
diff --git
a/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java
b/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java
index c918e2b..bac9d01 100644
---
a/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java
+++
b/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java
@@ -697,25 +697,25 @@ public class MetastoreConf {
METRICS_REPORTERS("metastore.metrics.reporters",
"metastore.metrics.reporters", "json,jmx",
new StringSetValidator("json", "jmx", "console", "hadoop", "slf4j"),
"A comma separated list of metrics reporters to start"),
- MSCK_PATH_VALIDATION("msck.path.validation", "hive.msck.path.validation",
"throw",
+ MSCK_PATH_VALIDATION("metastore.msck.path.validation",
"hive.msck.path.validation", "throw",
new StringSetValidator("throw", "skip", "ignore"), "The approach msck
should take with HDFS " +
"directories that are partition-like but contain unsupported characters.
'throw' (an " +
"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)"),
- MSCK_REPAIR_BATCH_SIZE("msck.repair.batch.size",
+ MSCK_REPAIR_BATCH_SIZE("metastore.msck.repair.batch.size",
"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 3000 which means it will
execute in the batches of 3000."),
- MSCK_REPAIR_BATCH_MAX_RETRIES("msck.repair.batch.max.retries",
"hive.msck.repair.batch.max.retries", 4,
+ MSCK_REPAIR_BATCH_MAX_RETRIES("metastore.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"
+ "In each retry attempt it will reduce the batch size by a factor of
2 until it reaches zero.\n"
+ "If the value is set to zero it will retry until the batch size
becomes zero as described above."),
-
MSCK_REPAIR_ENABLE_PARTITION_RETENTION("msck.repair.enable.partition.retention",
- "msck.repair.enable.partition.retention", false,
+
MSCK_REPAIR_ENABLE_PARTITION_RETENTION("metastore.msck.repair.enable.partition.retention",
+ "metastore.msck.repair.enable.partition.retention", false,
"If 'partition.retention.period' table property is set, this flag
determines whether MSCK REPAIR\n" +
"command should handle partition retention. If enabled, and if a
specific partition's age exceeded\n" +
"retention period the partition will be dropped along with data"),