You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by "Lenni Kuff (JIRA)" <ji...@apache.org> on 2015/09/15 01:36:45 UTC
[jira] [Created] (SENTRY-887) Sentry Hive binding fails with NPE
when authorizing permanent Hive UDFs
Lenni Kuff created SENTRY-887:
---------------------------------
Summary: Sentry Hive binding fails with NPE when authorizing permanent Hive UDFs
Key: SENTRY-887
URL: https://issues.apache.org/jira/browse/SENTRY-887
Project: Sentry
Issue Type: Bug
Components: Hive Plugin, Sentry
Reporter: Lenni Kuff
Fix For: 1.7.0
When Sentry is enabled in Hive, HiveServer2 throws an exception when it initializes the session:
{noformat}
2015-09-14 11:34:45,384 WARN org.apache.sentry.binding.metastore.SentryMetaStoreFilterHook: Error getting DB list
java.lang.NullPointerException
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:187)
at com.google.common.cache.LocalCache.get(LocalCache.java:3964)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3969)
at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4829)
at org.apache.hadoop.security.Groups.getGroups(Groups.java:182)
at org.apache.sentry.provider.common.HadoopGroupMappingService.getGroups(HadoopGroupMappingService.java:60)
at org.apache.sentry.provider.common.ResourceAuthorizationProvider.getGroups(ResourceAuthorizationProvider.java:165)
at org.apache.sentry.provider.common.ResourceAuthorizationProvider.doHasAccess(ResourceAuthorizationProvider.java:97)
at org.apache.sentry.provider.common.ResourceAuthorizationProvider.hasAccess(ResourceAuthorizationProvider.java:91)
at org.apache.sentry.binding.hive.authz.HiveAuthzBinding.authorize(HiveAuthzBinding.java:274)
at org.apache.sentry.binding.hive.HiveAuthzBindingHook.filterShowDatabases(HiveAuthzBindingHook.java:710)
at org.apache.sentry.binding.metastore.SentryMetaStoreFilterHook.filterDb(SentryMetaStoreFilterHook.java:131)
at org.apache.sentry.binding.metastore.SentryMetaStoreFilterHook.filterDatabases(SentryMetaStoreFilterHook.java:59)
at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getAllDatabases(HiveMetaStoreClient.java:975)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)