[
https://issues.apache.org/jira/browse/GOBBLIN-993?focusedWorklogId=353968&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-353968
]
ASF GitHub Bot logged work on GOBBLIN-993:
------------------------------------------
Author: ASF GitHub Bot
Created on: 05/Dec/19 01:08
Start Date: 05/Dec/19 01:08
Worklog Time Spent: 10m
Work Description: sv2000 commented on pull request #2839: [GOBBLIN-993]
Support job level hive configuration override
URL: https://github.com/apache/incubator-gobblin/pull/2839#discussion_r354065874
##########
File path:
gobblin-hive-registration/src/main/java/org/apache/gobblin/hive/HiveMetastoreClientPool.java
##########
@@ -139,7 +146,21 @@ public HiveMetastoreClientPool(Properties properties,
Optional<String> metastore
config.setMaxTotal(this.hiveRegProps.getNumThreads());
config.setMaxIdle(this.hiveRegProps.getNumThreads());
+ String extraConfigTarget =
properties.getProperty(POOL_HIVE_EXTRA_CONFIG_TARGET, "");
+
this.factory = new HiveMetaStoreClientFactory(metastoreURI);
+ if (metastoreURI.isPresent() && StringUtils.isNotEmpty(extraConfigTarget)
+ && metastoreURI.get().equals(extraConfigTarget)) {
+ log.info("Setting extra hive config for metastore {}",
extraConfigTarget);
+ properties.forEach((key, value) -> {
+ String configKey = key.toString();
+ if (configKey.startsWith(POOL_HIVE_EXTRA_CONFIG_PREFIX) &&
!configKey.equals(POOL_HIVE_EXTRA_CONFIG_TARGET)) {
+ log.info("Set extra hive config {}={}",
configKey.substring(POOL_HIVE_EXTRA_CONFIG_PREFIX.length()),
Review comment:
"Setting additional hive config ..."?
----------------------------------------------------------------
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: 353968)
Time Spent: 40m (was: 0.5h)
> Support job level hive configuration override
> ---------------------------------------------
>
> Key: GOBBLIN-993
> URL: https://issues.apache.org/jira/browse/GOBBLIN-993
> Project: Apache Gobblin
> Issue Type: Task
> Reporter: Zhixiong Chen
> Priority: Major
> Time Spent: 40m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)