ZhongyuWang created SENTRY-2532:
-----------------------------------

             Summary: NullPointerException when set hive.metastore.filter.hook 
with impala
                 Key: SENTRY-2532
                 URL: https://issues.apache.org/jira/browse/SENTRY-2532
             Project: Sentry
          Issue Type: Bug
          Components: Hive Binding
    Affects Versions: 1.5.1
         Environment: hadoop-2.6.0-cdh5.14.0

hive-1.1.0-cdh5.14.0

sentry-1.5.1-cdh5.14.0

impala-2.11.0-cdh5.14.0
            Reporter: ZhongyuWang


NullPointerException when we set 
hive.metastore.filter.hook=org.apache.sentry.binding.metastore.SentryMetaStoreFilterHook
 in /etc/impala/conf/hive-site.xml,it works fine with hive,but when we use that 
config with impala-catalog,it throws these exception:

W0911 15:10:40.300416 25600 SentryMetaStoreFilterHook.java:134] Error getting 
DB list  Java exception follows:java.lang.NullPointerException at 
org.apache.sentry.binding.metastore.SentryMetaStoreFilterHook.getConf(SentryMetaStoreFilterHook.java:197)
 at 
org.apache.sentry.binding.metastore.SentryMetaStoreFilterHook.getHiveAuthzBinding(SentryMetaStoreFilterHook.java:171)
 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:1094)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498) at 
org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:101)
 at com.sun.proxy.$Proxy5.getAllDatabases(Unknown Source) at 
org.apache.impala.catalog.CatalogServiceCatalog.reset(CatalogServiceCatalog.java:749)

 

and we can't get any database/table metainfo with impala-shell



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to