[ https://issues.apache.org/jira/browse/GOBBLIN-1209?focusedWorklogId=458293&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-458293 ]
ASF GitHub Bot logged work on GOBBLIN-1209: ------------------------------------------- Author: ASF GitHub Bot Created on: 13/Jul/20 20:27 Start Date: 13/Jul/20 20:27 Worklog Time Spent: 10m Work Description: autumnust commented on a change in pull request #3056: URL: https://github.com/apache/incubator-gobblin/pull/3056#discussion_r453911728 ########## File path: gobblin-cluster/src/main/java/org/apache/gobblin/cluster/GobblinClusterManager.java ########## @@ -142,23 +142,25 @@ public GobblinClusterManager(String clusterName, String applicationId, Config sysConfig, Optional<Path> appWorkDirOptional) throws Exception { + // Set system properties passed in via application config. As an example, Helix uses System#getProperty() for ZK configuration + // overrides such as sessionTimeout. In this case, the overrides specified + // in the application configuration have to be extracted and set before initializing HelixManager. + GobblinClusterUtils.setSystemProperties(sysConfig); + + //Add dynamic config + this.config = GobblinClusterUtils.addDynamicConfig(sysConfig); Review comment: Q: Does the location of adding `dynamicConfig` matter? Is dynamicConfig specifically used for SSL-relevant configs? ########## File path: gobblin-cluster/src/main/java/org/apache/gobblin/cluster/GobblinClusterUtils.java ########## @@ -112,6 +116,28 @@ public static Path getJobStateFilePath(boolean usingStateStore, Path appWorkPath return jobStateFilePath; } + /** + * Set the system properties from the input {@link Config} instance + * @param config + */ + public static void setSystemProperties(Config config) { + Properties properties = ConfigUtils.configToProperties(ConfigUtils.getConfig(config, GobblinClusterConfigurationKeys.GOBBLIN_CLUSTER_SYSTEM_PROPERTY_PREFIX, + ConfigFactory.empty())); + + for (Map.Entry<Object, Object> entry: properties.entrySet()) { + if (entry.getKey().toString().equals("java.io.tmpdir")) { Review comment: Shall we add `java.io.tmpdir` to a string constant ? ---------------------------------------------------------------- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 458293) Time Spent: 1h 20m (was: 1h 10m) > Provide an option to configure the java tmp dir to the Yarn cache location > ---------------------------------------------------------------------------- > > Key: GOBBLIN-1209 > URL: https://issues.apache.org/jira/browse/GOBBLIN-1209 > Project: Apache Gobblin > Issue Type: Improvement > Components: gobblin-yarn > Affects Versions: 0.15.0 > Reporter: Sudarshan Vasudevan > Assignee: Abhishek Tiwari > Priority: Major > Fix For: 0.15.0 > > Time Spent: 1h 20m > Remaining Estimate: 0h > > This PR allows the tmp dir to be set to the container's cache location > overriding the default setting of /tmp. This requires the the tmp dir system > property to dynamically configured to the cache location. -- This message was sent by Atlassian Jira (v8.3.4#803005)