You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Madhan Neethiraj (Jira)" <ji...@apache.org> on 2020/08/29 19:27:00 UTC

[jira] [Created] (RANGER-2979) Test failure due to NPE

Madhan Neethiraj created RANGER-2979:
----------------------------------------

             Summary: Test failure due to NPE
                 Key: RANGER-2979
                 URL: https://issues.apache.org/jira/browse/RANGER-2979
             Project: Ranger
          Issue Type: Bug
          Components: plugins
    Affects Versions: 2.1.0
            Reporter: Madhan Neethiraj
            Assignee: Madhan Neethiraj


Few Hive plugin tests fail with following NPE:
{noformat}
org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAuthzPluginException: java.lang.NullPointerException
  at org.apache.ranger.authorization.hive.authorizer.RangerHiveAuthorizer.getCurrentRoleNamesFromRanger(RangerHiveAuthorizer.java:359) ~[classes/:?]
  at org.apache.ranger.authorization.hive.authorizer.RangerHiveAuthorizer.initUserRoles(RangerHiveAuthorizer.java:320) [classes/:?]
  at org.apache.ranger.authorization.hive.authorizer.RangerHiveAuthorizer.getCurrentRoles(RangerHiveAuthorizer.java:329) [classes/:?]
  at org.apache.ranger.authorization.hive.authorizer.RangerHiveAuthorizer.filterListCmdObjects(RangerHiveAuthorizer.java:1063) [classes/:?]
  at org.apache.hadoop.hive.ql.security.authorization.plugin.AuthorizationMetaStoreFilterHook.getFilteredObjects(AuthorizationMetaStoreFilterHook.java:81) [hive-exec-3.1.2.jar:3.1.2]
  at org.apache.hadoop.hive.ql.security.authorization.plugin.AuthorizationMetaStoreFilterHook.filterDatabases(AuthorizationMetaStoreFilterHook.java:55) [hive-exec-3.1.2.jar:3.1.2]
  at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getAllDatabases(HiveMetaStoreClient.java:1356) [hive-exec-3.1.2.jar:3.1.2]
  at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getAllDatabases(HiveMetaStoreClient.java:1351) [hive-exec-3.1.2.jar:3.1.2]
  at sun.reflect.GeneratedMethodAccessor143.invoke(Unknown Source) ~[?:?]
...
Caused by: java.lang.NullPointerException
  at java.util.HashSet.<init>(HashSet.java:119) ~[?:1.8.0_265]
  at org.apache.ranger.authorization.hive.authorizer.RangerHiveAuthorizer.getCurrentRoleNamesFromRanger(RangerHiveAuthorizer.java:350) ~[classes/:?]
{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)