Skip to content

Commit 0806fb7

Browse files
committed
Cleaned up docs regarding run options. More details on running managed_upgrade_2_acid.sql.
1 parent ca4f00a commit 0806fb7

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ See the [config docs](./config.md) for details.
7777
To ease the launch of the application below, configure these core environment variables.
7878

7979
```
80-
hive-sre sre -db priv_dstreev -o ./sre-out`
80+
hive-sre u3|sre -all|-hdp2|-hdp3|-cdh`
8181
```
8282

8383
**NOTE** It is NOT necessary to use the `-cfg` option if your config is `$HOME/.hive-sre/cfg/default`.
@@ -102,7 +102,7 @@ Copy this encrypted password and place it in your configuration file for the con
102102

103103
Using the **same** `-pkey <password-key>` you used to generate the encrypted password, we'll run `hive-sre`
104104

105-
`hive-sre u3 -pkey cloudera ...`
105+
`hive-sre u3 -all|-hdp2|-hdp3|-cdh -pkey cloudera ...`
106106

107107
When the `-pkey` option is specified **WITHOUT** the `-p` option (used previously), `hive-sre` will understand to **decrypt** the configuration passwords before connecting to the resources. If you receive jdbc connection exceptions, recheck the `-pkey` and encrypted password from before.
108108

src/main/resources/procs/h3_upg_procs.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,25 @@ processes:
121121
122122
-- Tables that are managed and aren't converted by this program, will be converted to 'EXTERNAL/purge' when they don't
123123
meet all the criteria for the conversion, regardless. Using the 'action' elements of this report simply ensures
124-
you are in control of the migration process.\n\n"
124+
you are in control of the migration process.\n
125+
126+
-- These conversions need to happen BEFORE the tables are accessed in CDP. Generally, this is done AFTER the upgrade
127+
to CDP and BEFORE the tables are turned over to the end users. In some cases, due to the volume of changes needed,
128+
the conversion can be run before the upgrade. BUT the conversion WILL have an impact on table behavior. Convert tables
129+
in the legacy environment will NOT honor the 'purge' characteristics stated by the 'external.table.purge' TBLPROPERTIES.
130+
So be advised of this caveat if you choose to run these conversions BEFORE the upgrade.\n
131+
132+
-- The report includes the tables 'created_date' in the comment line above the 'ALTER'. You can use:\n
133+
-- grep -A1 'created date: yyyy-MM' managed_upgrade_2_acid.sql | grep 'ALTER TABLE' > beeline_run.sql\n
134+
-- OR
135+
-- grep 'ALTER TABLE' managed_upgrade_2_acid.sql | sort -k3 > beeline_run.sql\n
136+
-- to target certain tables first and run this post upgrade to make them available asap.\n
137+
138+
-- Consider breaking the file into multiple parts to increase throughput and reduce runtime.\n
139+
-- The statement are meant to be run against 'hive'. Use 'beeline -f <run.sql>'\n
140+
141+
-- NOTE: This process CAN and SHOULD be run after the upgrade and after all the ALTER scripts have been run to ensure
142+
-- you haven't missed any conversion.\n\n"
125143
record: "-- This table 'could' be migrated to an ACID table unless changed.\n
126144
-- Recommend forcing the manual conversion to ensure table isn't inadvertently migrated.\n
127145
-- created date: %3$s\n

u3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ For a while during the evolution of Hive 3, there was a separate 'catalog' for S
7575
### Application Help
7676

7777
```
78-
usage: hive-sre u3|sre|perf -cdh|-hdp2|-hdp3|-all|-i <proc[,proc...]> -o <output-dir> [options]
78+
usage: hive-sre u3|sre|perf -cdh|-hdp2|-hdp3|-all|-i <proc[,proc...]> [options]
7979
version:2.4.0.24.0-SNAPSHOT
8080
Hive SRE Utility
8181
-all,--all-reports Run ALL available processes.

0 commit comments

Comments
 (0)