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

execute hdfs dfs -ls / NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.2.0
    • 1.2.1
    • Ranger
    • None

    Description

      when I execute hdfs dfs -ls / ,Viewing the Hadoop logs found the following error

      xxxx 15:20:23,058 WARN org.apache.hadoop.ipc.Server: IPC Server handler 5 on 8020, call org.apache.hadoop.hdfs.protocol.ClientProtocol.getFileInfo from xxx:11136 Call#0 Retry#0

      java.lang.NullPointerException

      at org.apache.hadoop.hdfs.DFSUtil.bytes2String(DFSUtil.java:314)

      at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.getINodeAttrs(FSPermissionChecker.java:238)

      at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:183)

      at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkPermission(FSDirectory.java:1752)

      at org.apache.hadoop.hdfs.server.namenode.FSDirStatAndListingOp.getFileInfo(FSDirStatAndListingOp.java:100)

      at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getFileInfo(FSNamesystem.java:3831)

      at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.getFileInfo(NameNodeRpcServer.java:1012)

      at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.getFileInfo(ClientNamenodeProtocolServerSideTranslatorPB.java:855)

      at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)

      at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:616)

      at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:982)

      at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2217)

      at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2213)

      at java.security.AccessController.doPrivileged(Native Method)

      at javax.security.auth.Subject.doAs(Subject.java:422)

      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1758)

      at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2213)

      But when I execute hdfs dfs -ls /tmp ,Did not report an error,And control permissions functions are normal.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bianqi bianqi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: