You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sentry.apache.org by "Alexander Kolbasov (JIRA)" <ji...@apache.org> on 2017/05/02 14:51:04 UTC
[jira] [Commented] (SENTRY-1747) HMSFollower shouldn't create local
hive during tests
[ https://issues.apache.org/jira/browse/SENTRY-1747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15993024#comment-15993024 ]
Alexander Kolbasov commented on SENTRY-1747:
--------------------------------------------
Here is the code:
{code}
public HiveMetaStoreClient(HiveConf conf, HiveMetaHookLoader hookLoader)
throws MetaException {
this.hookLoader = hookLoader;
if (conf == null) {
conf = new HiveConf(HiveMetaStoreClient.class);
}
this.conf = conf;
filterHook = loadFilterHooks();
String msUri = conf.getVar(HiveConf.ConfVars.METASTOREURIS);
localMetaStore = HiveConfUtil.isEmbeddedMetaStore(msUri);
if (localMetaStore) {
// instantiate the metastore server handler directly instead of connecting
// through the network
client = HiveMetaStore.newRetryingHMSHandler("hive client", conf, true);
isConnected = true;
snapshotActiveConf();
return;
}
{code}
> HMSFollower shouldn't create local hive during tests
> ----------------------------------------------------
>
> Key: SENTRY-1747
> URL: https://issues.apache.org/jira/browse/SENTRY-1747
> Project: Sentry
> Issue Type: Sub-task
> Components: Hive Plugin, Sentry
> Affects Versions: sentry-ha-redesign
> Reporter: Alexander Kolbasov
> Assignee: Alexander Kolbasov
> Fix For: sentry-ha-redesign
>
>
> When HMSFollower is running during Hive e2e tests it causes problem because at the time it starts, the metastore URIs is not set and it causes a local Hive to be started. Later real Hive is started so there are two Hive instances.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)