@@ -19,11 +19,11 @@ processes:
19
19
displayName : " Locations Scan"
20
20
queryDefinitionReference : " /hive_u3_queries.yaml"
21
21
dbListingQuery : " db_tbl_count"
22
- listingColumns : [ "name" ,"tbl_name" , "tbl_type" ,"part_name" , "path_location" ]
22
+ listingColumns : [ "name" ,"tbl_name" , "tbl_type" ,"part_name" , "path_location", "part_id" ]
23
23
pathsListingQuery : " tbl_part_locations"
24
24
commandChecks :
25
25
- displayName : " Hive 3 Upgrade Check - Missing Directory Locations Scan"
26
- title : " # Hive 3 Upgrade Check - Missing Direcotories (v.${Implementation-Version})\n\n ## Missing Directory Locations Scan"
26
+ title : " # Hive 3 Upgrade Check - Missing Directories (v.${Implementation-Version})\n\n ## Missing Directory Locations Scan"
27
27
note : "
28
28
*Remediation Options*\n
29
29
_NOTE:_ Beware of \" Smart Quote\" AND other conversions via Markdown Renderers. Copy/paste from 'raw' text to ensure compatibility.\n\n
@@ -39,7 +39,7 @@ processes:
39
39
always a good practice.\n\n
40
40
This process should be run frequently, up to the point of the upgrade, to ensure all items have been addressed. Before
41
41
the upgrade can succeed, this report should be *empty*.\n\n "
42
- header : " | DB.Table:Partition Spec | Hive SQL (recommended) | HDFS | Hive MSCK (Post Upgrade) |\n |:---|:---|:---|:---|"
42
+ header : " | DB.Table:Partition Spec | Hive SQL (recommended) | HDFS | Hive MSCK (Post Upgrade) | PART ID | \n |:--- |:---|:---|:---|:---|"
43
43
errorDescription : " Scan Actions"
44
44
successDescription : " Issues"
45
45
errorFilename : loc_scan_missing_dirs.md
@@ -54,8 +54,8 @@ processes:
54
54
partitionCheck :
55
55
RECORDS :
56
56
test : " if (\" %4$s\" .equals(\" \" )) true; else false;"
57
- pass : " \" | %1$s.%2$s | DROP TABLE IF EXISTS `%1$s`.`%2$s`; | mkdir -p \\\" %5$s\\\" | MSCK REPAIR TABLE `%1$s`.`%2$s` SYNC PARTITIONS; |\" "
58
- fail : " \" | %1$s.%2$s:\" + com.cloudera.utils.hive.sre.Utils.dirToPartitionSpec('%4$s') + \" | ALTER TABLE `%1$s`.`%2$s` DROP IF EXISTS PARTITION (\" + com.cloudera.utils.hive.sre.Utils.dirToPartitionSpec('%4$s') + \" ); | mkdir -p \\\" %5$s\\\" | |\" "
57
+ pass : " \" | %1$s.%2$s | DROP TABLE IF EXISTS `%1$s`.`%2$s`; | mkdir -p \\\" %5$s\\\" | MSCK REPAIR TABLE `%1$s`.`%2$s` SYNC PARTITIONS; | | \" "
58
+ fail : " \" | %1$s.%2$s:\" + com.cloudera.utils.hive.sre.Utils.dirToPartitionSpec('%4$s') + \" | ALTER TABLE `%1$s`.`%2$s` DROP IF EXISTS PARTITION (\" + com.cloudera.utils.hive.sre.Utils.dirToPartitionSpec('%4$s') + \" ); | mkdir -p \\\" %5$s\\\" | | %6$s | \" "
59
59
params : [ "hive" ]
60
60
61
61
- type : " dbSet"
0 commit comments