[ https://issues.apache.org/jira/browse/GOBBLIN-1216?focusedWorklogId=461331&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-461331 ]
ASF GitHub Bot logged work on GOBBLIN-1216: ------------------------------------------- Author: ASF GitHub Bot Created on: 20/Jul/20 23:32 Start Date: 20/Jul/20 23:32 Worklog Time Spent: 10m Work Description: autumnust commented on a change in pull request #3064: URL: https://github.com/apache/incubator-gobblin/pull/3064#discussion_r457749028 ########## File path: gobblin-data-management/src/test/java/org/apache/gobblin/runtime/embedded/EmbeddedGobblinDistcpTest.java ########## @@ -83,6 +118,87 @@ public void test() throws Exception { Assert.assertTrue(new File(tmpTarget, fileName).exists()); } + @Test + public void hiveTest() throws Exception { + // Hive Environment set-up + HiveConf hiveConf = new HiveConf(); + + try { + // Start a Hive session in this thread and register the UDF + SessionState.start(hiveConf); + SessionState.get().initTxnMgr(hiveConf); + } catch (HiveException he) { + throw new RuntimeException("Failed to start Hive session.", he); + } + try { + jdbcConnector = HiveJdbcConnector.newEmbeddedConnector(2); + } catch (SQLException se) { + throw new RuntimeException("Cannot initialize the jdbc-connector due to: ", se); + } Review comment: Thanks for catching, this is the duplicated code. ---------------------------------------------------------------- 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: 461331) Time Spent: 50m (was: 40m) > Embedded Hive Distcp > -------------------- > > Key: GOBBLIN-1216 > URL: https://issues.apache.org/jira/browse/GOBBLIN-1216 > Project: Apache Gobblin > Issue Type: Improvement > Reporter: Lei Sun > Priority: Major > Time Spent: 50m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.3.4#803005)