sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "guoquanshen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SENTRY-337) When Metastore service binding sentry and the parameter sentry.metastore.service.users isn't set or set empty, starting metastore will throw java.lang.NullPointerException
Date Wed, 16 Jul 2014 05:27:06 GMT

     [ https://issues.apache.org/jira/browse/SENTRY-337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

guoquanshen updated SENTRY-337:
-------------------------------

    Priority: Minor  (was: Major)

> When Metastore service binding sentry and the parameter sentry.metastore.service.users
isn't set or set empty, starting metastore will throw java.lang.NullPointerException
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SENTRY-337
>                 URL: https://issues.apache.org/jira/browse/SENTRY-337
>             Project: Sentry
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: guoquanshen
>            Assignee: guoquanshen
>            Priority: Minor
>             Fix For: 1.4.0
>
>         Attachments: SENTRY-337.patch
>
>
> When Metastore service binding sentry and the parameter sentry.metastore.service.users
isn't set or set empty in the sentry-site.xml, starting metastore will throw java.lang.NullPointerException.It
throws following error:
> {code:title=MetastoreAuthzBinding.java|borderStyle=solid}
> MetaException(message:Failed to instantiate listener named: org.apache.sentry.binding.metastore.MetastoreAuthzBinding,
reason: java.lang.NullPointerException)
> 	at org.apache.hadoop.hive.metastore.MetaStoreUtils.getMetaStoreListeners(MetaStoreUtils.java:1115)
> 	at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:345)
> 	at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.<init>(HiveMetaStore.java:293)
> 	at org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:54)
> 	at org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:59)
> 	at org.apache.hadoop.hive.metastore.HiveMetaStore.newHMSHandler(HiveMetaStore.java:4085)
> 	at org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:4287)
> 	at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:4221)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
> Exception in thread "main" MetaException(message:Failed to instantiate listener named:
org.apache.sentry.binding.metastore.MetastoreAuthzBinding, reason: java.lang.NullPointerException)
> 	at org.apache.hadoop.hive.metastore.MetaStoreUtils.getMetaStoreListeners(MetaStoreUtils.java:1115)
> 	at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:345)
> 	at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.<init>(HiveMetaStore.java:293)
> 	at org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:54)
> 	at org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:59)
> 	at org.apache.hadoop.hive.metastore.HiveMetaStore.newHMSHandler(HiveMetaStore.java:4085)
> 	at org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:4287)
> 	at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:4221)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message