Closed dk1844 closed 7 months ago
Skip prefixes feature has been updated:
--skip-prefix SINGLE_VALUE
->--skip-prefixes VALUE1 VALUE2
(default s3a:// /tmp
, shortcut -s
remains)SonarCloud Quality Gate failed.
0 Bugs
0 Vulnerabilities
1 Security Hotspot
3 Code Smells
No Coverage information
0.0% Duplication
Catch issues before they fail your Quality Gate with our IDE extension
SonarLint
Merging - tested internally. Jenkins build bears no relevance here, this is a separate migration Python script
This PR adds a script to remap hdfs paths based on a service response. Primary usage is for hdfs to ECS migration (with defaults set for this purpose), but the script is general in nature.
Naively Dev-Tested on local mongoDB.
When reading and thinking that some parts have no relation to this script (e.g.
migration_free_only=False
), note, that this script reuses a lot of the siblingmigrate_menas.py
- that being the reason.Examples
Help with params overview:
Example run for datasets
DM9_actn_Cd
andDM9_cnsmr_accnt_Sttlmnt
-d
- dataset-t
- target db-u
- mapping service URL-o
- only map datasets, not related mapping tables-f hdfsPublishPath
- onlyhdfsPublishPath
field will get path-changed (sohdfsPath
will be kept as-is).Example run for dataset
XMSK083
- has mapping table ties:-d
- dataset-t
- target db-u
mapping service URL-n
dryrun (just print)-v
verbose