You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Marcelo Vanzin (JIRA)" <ji...@apache.org> on 2018/06/13 22:32:00 UTC
[jira] [Created] (HIVE-19888) Misleading "METASTORE_FILTER_HOOK
will be ignored" warning from SessionState
Marcelo Vanzin created HIVE-19888:
-------------------------------------
Summary: Misleading "METASTORE_FILTER_HOOK will be ignored" warning from SessionState
Key: HIVE-19888
URL: https://issues.apache.org/jira/browse/HIVE-19888
Project: Hive
Issue Type: Bug
Components: HiveServer2
Affects Versions: 3.0.0
Reporter: Marcelo Vanzin
When I run things on my test cluster I see things like this in my logs:
{noformat}
18/03/14 13:35:20 WARN session.SessionState: METASTORE_FILTER_HOOK will be ignored, since hive.security.authorization.manager is set to instance of HiveAuthorizerFactory.
18/03/14 13:35:21 WARN session.SessionState: METASTORE_FILTER_HOOK will be ignored, since hive.security.authorization.manager is set to instance of HiveAuthorizerFactory.
{noformat}
That's because the code in SessionState.java is wrong:
{code}
String metastoreHook = sessionConf.get(ConfVars.METASTORE_FILTER_HOOK.name());
if (!ConfVars.METASTORE_FILTER_HOOK.getDefaultValue().equals(metastoreHook) &&
!AuthorizationMetaStoreFilterHook.class.getName().equals(metastoreHook)) {
LOG.warn(ConfVars.METASTORE_FILTER_HOOK.name() +
" will be ignored, since hive.security.authorization.manager" +
" is set to instance of HiveAuthorizerFactory.");
}
{code}
It's using {{.name()}} which is the enum name, not the actual config key.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)