[
https://issues.apache.org/jira/browse/GOBBLIN-976?focusedWorklogId=347826&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-347826
]
ASF GitHub Bot logged work on GOBBLIN-976:
------------------------------------------
Author: ASF GitHub Bot
Created on: 22/Nov/19 00:27
Start Date: 22/Nov/19 00:27
Worklog Time Spent: 10m
Work Description: sv2000 commented on pull request #2823: GOBBLIN-976:
Add dynamic config to the state before instantiating met…
URL: https://github.com/apache/incubator-gobblin/pull/2823#discussion_r349384500
##########
File path:
gobblin-runtime/src/main/java/org/apache/gobblin/runtime/mapreduce/MRJobLauncher.java
##########
@@ -766,6 +767,7 @@ protected void setup(Context context) {
for (Map.Entry<String, ConfigValue> entry : dynamicConfig.entrySet()) {
this.jobState.setProp(entry.getKey(),
entry.getValue().unwrapped().toString());
configuration.set(entry.getKey(),
entry.getValue().unwrapped().toString());
+ gobblinJobState.setProp(entry.getKey(),
entry.getValue().unwrapped().toString());
Review comment:
I did consider it. I think this needs a significant clean up. In addition to
configuration and gobblinJobState, we also have jobProps (which is a
java.util.Properties). It seems that there is overlap in configs across these
types, and it is unclear which property should go where. Arguably, since Hadoop
APIs use Configuration, we should set all properties in the configuration
object. But I am open to suggestions. I will create a tech-debt ticket and use
that for addressing this.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 347826)
Time Spent: 0.5h (was: 20m)
> Add dynamic config to the state before instantiating metrics reporter in
> MRJobLauncher
> --------------------------------------------------------------------------------------
>
> Key: GOBBLIN-976
> URL: https://issues.apache.org/jira/browse/GOBBLIN-976
> Project: Apache Gobblin
> Issue Type: Improvement
> Components: gobblin-core
> Affects Versions: 0.15.0
> Reporter: Sudarshan Vasudevan
> Assignee: Abhishek Tiwari
> Priority: Major
> Fix For: 0.15.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> To properly instantiate metric reporter, the dynamic config generated via
> dynamicConfigGenerator.classes needs to be added into the state object passed
> to the reporter.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)