gobblin
gobblin copied to clipboard
[GOBBLIN-939] Integrate usage of env variables in gobblin scripts and standardize configs
Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA
- [x] My PR addresses the following Gobblin JIRA issues and references them in the PR title. For example, "[GOBBLIN-XXX] My Gobblin PR"
- https://issues.apache.org/jira/browse/GOBBLIN-939
Description
- [x] Here are some details about my PR, including screenshots (if applicable):
- standardize config with ENV variables
- define default env variables in gobblin-env.sh
Tests
- [x] My PR adds the following unit tests OR does not need testing for this extremely good reason: N/A
Commits
- [x] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":
- Subject is separated from body by a blank line
- Subject is limited to 50 characters
- Subject does not end with a period
- Subject uses the imperative mood ("add", not "adding")
- Body wraps at 72 characters
- Body explains "what" and "why", not "how"
I was wondering, would it be better if we were to utilise javaopts, so -D flags for these environment variables, rather than continuously modifying the scripts/configs?
Codecov Report
Merging #2788 (442d421) into master (f3d75e3) will decrease coverage by
0.94%. The diff coverage isn/a.
@@ Coverage Diff @@
## master #2788 +/- ##
============================================
- Coverage 45.87% 44.93% -0.95%
+ Complexity 9190 9019 -171
============================================
Files 1934 1934
Lines 72931 72931
Branches 8046 8046
============================================
- Hits 33458 32771 -687
- Misses 36404 37132 +728
+ Partials 3069 3028 -41
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update f3d75e3...c5d8b5f. Read the comment docs.
I was wondering, would it be better if we were to utilise javaopts, so
-Dflags for these environment variables, rather than continuously modifying the scripts/configs?
u mean like javaopts in bash ?
@Will-Lo , @sv2000 can u pls take a look, This will make all exec mode config very standard with the gobblin script changes. Thanks
@Will-Lo,can u pls review this ?
I'll take a look, thanks!
Going to test this out first later today, thanks for the additions!
fixed the typo.
@Will-Lo , @sv2000 , Can u pls take a look?