Skip to content

Commit

Permalink
Readded system conf
Browse files Browse the repository at this point in the history
  • Loading branch information
nvitucci committed Feb 2, 2021
1 parent 7bbba23 commit 642f74d
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/main/java/com/hotels/beeju/HiveMetaStoreJUnitRule.java
Expand Up @@ -16,6 +16,8 @@
package com.hotels.beeju;


import static org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars.CONNECT_URL_KEY;

import java.util.Map;

import org.apache.hadoop.hive.metastore.HiveMetaStoreClient;
Expand Down Expand Up @@ -73,7 +75,7 @@ public HiveMetaStoreJUnitRule(

@Override
protected void before() throws Throwable {
// System.clearProperty(CONNECT_URL_KEY.getVarname());
System.clearProperty(CONNECT_URL_KEY.getVarname());
super.before();
hiveMetaStoreCore.initialise();
}
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/hotels/beeju/HiveServer2JUnitRule.java
Expand Up @@ -16,6 +16,8 @@
package com.hotels.beeju;


import static org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars.CONNECT_URL_KEY;

import java.util.Map;

import org.apache.hive.jdbc.HiveDriver;
Expand Down Expand Up @@ -65,7 +67,7 @@ public HiveServer2JUnitRule(String databaseName, Map<String, String> configurati

@Override
protected void before() throws Throwable {
// System.clearProperty(CONNECT_URL_KEY.getVarname());
System.clearProperty(CONNECT_URL_KEY.getVarname());
hiveServer2Core.startServerSocket();
super.before();
hiveServer2Core.initialise();
Expand Down
Expand Up @@ -16,6 +16,8 @@
package com.hotels.beeju;


import static org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars.CONNECT_URL_KEY;

import java.util.Map;

import com.hotels.beeju.core.ThriftHiveMetaStoreCore;
Expand Down Expand Up @@ -70,7 +72,7 @@ public ThriftHiveMetaStoreJUnitRule(String databaseName, Map<String, String> pre

@Override
protected void before() throws Throwable {
// System.clearProperty(CONNECT_URL_KEY.getVarname());
System.clearProperty(CONNECT_URL_KEY.getVarname());
super.before();
thriftHiveMetaStoreCore.initialise();
}
Expand Down
Expand Up @@ -16,6 +16,8 @@
package com.hotels.beeju.extensions;


import static org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars.CONNECT_URL_KEY;

import java.util.Map;

import org.apache.hadoop.hive.metastore.HiveMetaStoreClient;
Expand Down Expand Up @@ -62,7 +64,7 @@ public HiveMetaStoreJUnitExtension(String databaseName, Map<String, String> conf

@Override
public void beforeEach(ExtensionContext context) throws Exception {
// System.clearProperty(CONNECT_URL_KEY.getVarname());
System.clearProperty(CONNECT_URL_KEY.getVarname());
super.beforeEach(context);
hiveMetaStoreCore.initialise();
}
Expand Down
Expand Up @@ -16,6 +16,8 @@
package com.hotels.beeju.extensions;


import static org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars.CONNECT_URL_KEY;

import java.util.Map;

import org.apache.hive.jdbc.HiveDriver;
Expand Down Expand Up @@ -56,7 +58,7 @@ public HiveServer2JUnitExtension(String databaseName, Map<String, String> config

@Override
public void beforeEach(ExtensionContext context) throws Exception {
// System.clearProperty(CONNECT_URL_KEY.getVarname());
System.clearProperty(CONNECT_URL_KEY.getVarname());
hiveServer2Core.startServerSocket();
super.beforeEach(context);
hiveServer2Core.initialise();
Expand Down
Expand Up @@ -16,6 +16,8 @@
package com.hotels.beeju.extensions;


import static org.apache.hadoop.hive.metastore.conf.MetastoreConf.ConfVars.CONNECT_URL_KEY;

import java.util.Map;

import org.junit.jupiter.api.extension.ExtensionContext;
Expand Down Expand Up @@ -62,7 +64,7 @@ public ThriftHiveMetaStoreJUnitExtension(String databaseName, Map<String, String

@Override
public void beforeEach(ExtensionContext context) throws Exception {
// System.clearProperty(CONNECT_URL_KEY.getVarname());
System.clearProperty(CONNECT_URL_KEY.getVarname());
super.beforeEach(context);
thriftHiveMetaStoreCore.initialise();
}
Expand Down

0 comments on commit 642f74d

Please sign in to comment.