Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-328

Ranger HDFS plugin fails with NPE

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.0
    • Fix Version/s: 0.5.0
    • Component/s: None
    • Labels:
      None

      Description

      HDFS authorization calls that are received before Ranger plugin downloaded policies from Range Admin fail with NPE.

      2015-03-23 15:52:20,638 WARN ipc.Server (Server.java:run(2073)) - IPC Server handler 26 on 8020, call org.apache.hadoop.hdfs.protocol.ClientProtocol.getFileInfo from 240.0.0.10:40062 Call#0 Retry#0
      java.lang.NullPointerException
      at org.apache.hadoop.hdfs.server.namenode.RangerHdfsAuditHandler.logAudit(RangerFSPermissionChecker.java:284)
      at org.apache.ranger.plugin.policyengine.RangerPolicyEngineImpl.isAccessAllowed(RangerPolicyEngineImpl.java:121)
      at org.apache.ranger.plugin.service.RangerBasePlugin.isAccessAllowed(RangerBasePlugin.java:171)
      at org.apache.hadoop.hdfs.server.namenode.RangerFSPermissionChecker.AuthorizeAccessForUser(RangerFSPermissionChecker.java:134)
      at org.apache.hadoop.hdfs.server.namenode.RangerFSPermissionChecker.check(RangerFSPermissionChecker.java:89)

        Attachments

          Activity

            People

            • Assignee:
              madhan.neethiraj Madhan Neethiraj
              Reporter:
              madhan.neethiraj Madhan Neethiraj
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: