[
https://issues.apache.org/jira/browse/SENTRY-1747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15995803#comment-15995803
]
Alexander Kolbasov edited comment on SENTRY-1747 at 5/3/17 10:23 PM:
---------------------------------------------------------------------
As noted by [~spena] a better way to do this is to specify {{allowEmbedded =
false}} in {{HiveMetaStoreClient(HiveConf conf, HiveMetaHookLoader hookLoader,
Boolean allowEmbedded)}}.
This will cause {{MetaException}} instead of using local metastore:
{code}
if (!allowEmbedded) {
throw new MetaException("Embedded metastore is not allowed here. Please
configure "
+ ConfVars.METASTOREURIS.varname + "; it is currently set to [" +
msUri + "]");
}
{code}
was (Author: akolb):
As noted by [~spena] a better way to do this is to specify {{allowEmbedded =
false}} in {{HiveMetaStoreClient(HiveConf conf, HiveMetaHookLoader hookLoader,
Boolean allowEmbedded)}}.
This will cause MetaException instead of using local metastore.
> 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)