NPE in Premission check whe copyFromLocal is run as root

Description

019-09-26 15:54:38,251 WARN io.hops.transaction.handler.RequestHandler: SUBTREE_PATH_INFO TX Failed. TX Time: 3 ms, RetryCount: 0, TX Stats – Setup: 0ms, AcquireLocks: 2ms, InMemoryProcessing: -1ms, CommitTime: -1ms. Locks: INodeLock {paths=/tmp/fuck.COPYING, lockType=READ_COMMITTED }. java.lang.NullPointerException
java.lang.NullPointerException
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkStickyBit(FSPermissionChecker.java:561)
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:221)
at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkPermission(FSDirectory.java:1519)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem$49.performTask(FSNamesystem.java:8289)
at io.hops.transaction.handler.TransactionalRequestHandler.execute(TransactionalRequestHandler.java:100)
at io.hops.transaction.handler.HopsTransactionalRequestHandler.execute(HopsTransactionalRequestHandler.java:50)
at io.hops.transaction.handler.RequestHandler.handle(RequestHandler.java:68)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getPathExistingINodesFromDB(FSNamesystem.java:8328)
at org.apache.hadoop.hdfs.server.namenode.FSDirRenameOp.renameForEditLog(FSDirRenameOp.java:160)
at org.apache.hadoop.hdfs.server.namenode.FSDirRenameOp.renameTo(FSDirRenameOp.java:714)
at org.apache.hadoop.hdfs.server.namenode.FSDirRenameOp.renameToInt(FSDirRenameOp.java:92)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.renameTo(FSNamesystem.java:3291)
at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.rename(NameNodeRpcServer.java:752)
at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.rename(ClientNamenodeProtocolServerSideTranslatorPB.java:658)
at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)
at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:447)
at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:996)
at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:850)
at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:793)
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:1929)
at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2786)
2019-09-26 15:54:38,253 WARN org.apache.hadoop.ipc.Server: RPC IPC 15, call Call#11 Retry#0 org.apache.hadoop.hdfs.protocol.ClientProtocol.rename from 10.0.2.15:39598
java.lang.NullPointerException
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkStickyBit(FSPermissionChecker.java:561)
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:221)
at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkPermission(FSDirectory.java:1519)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem$49.performTask(FSNamesystem.java:8289)
at io.hops.transaction.handler.TransactionalRequestHandler.execute(TransactionalRequestHandler.java:100)
at io.hops.transaction.handler.HopsTransactionalRequestHandler.execute(HopsTransactionalRequestHandler.java:50)
at io.hops.transaction.handler.RequestHandler.handle(RequestHandler.java:68)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getPathExistingINodesFromDB(FSNamesystem.java:8328)
at org.apache.hadoop.hdfs.server.namenode.FSDirRenameOp.renameForEditLog(FSDirRenameOp.java:160)
at org.apache.hadoop.hdfs.server.namenode.FSDirRenameOp.renameTo(FSDirRenameOp.java:714)
at org.apache.hadoop.hdfs.server.namenode.FSDirRenameOp.renameToInt(FSDirRenameOp.java:92)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.renameTo(FSNamesystem.java:3291)
at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.rename(NameNodeRpcServer.java:752)
at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.rename(ClientNamenodeProtocolServerSideTranslatorPB.java:658)
at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)
at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:447)
at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:996)
at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:850)
at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:793)
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:1929)
at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2786)
2019-09-26 15:54:38,276 WARN io.hops.transaction.handler.RequestHandler: SUBTREE_PATH_INFO TX Failed. TX Time: 3 ms, RetryCount: 0, TX Stats – Setup: 0ms, AcquireLocks: 2ms, InMemoryProcessing: -1ms, CommitTime: -1ms. Locks: INodeLock {paths=/tmp/fuck.COPYING, lockType=READ_COMMITTED }. java.lang.NullPointerException
java.lang.NullPointerException
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkStickyBit(FSPermissionChecker.java:561)
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:221)
at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkPermission(FSDirectory.java:1519)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem$49.performTask(FSNamesystem.java:8289)
at io.hops.transaction.handler.TransactionalRequestHandler.execute(TransactionalRequestHandler.java:100)
at io.hops.transaction.handler.HopsTransactionalRequestHandler.execute(HopsTransactionalRequestHandler.java:50)
at io.hops.transaction.handler.RequestHandler.handle(RequestHandler.java:68)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getPathExistingINodesFromDB(FSNamesystem.java:8328)
at org.apache.hadoop.hdfs.server.namenode.FSDirDeleteOp.delete(FSDirDeleteOp.java:107)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.delete(FSNamesystem.java:3340)
at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.delete(NameNodeRpcServer.java:821)
at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.delete(ClientNamenodeProtocolServerSideTranslatorPB.java:701)
at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)
at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:447)
at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:996)
at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:850)
at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:793)
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:1929)
at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2786)
2019-09-26 15:54:38,277 WARN org.apache.hadoop.ipc.Server: RPC IPC 25, call Call#13 Retry#0 org.apache.hadoop.hdfs.protocol.ClientProtocol.delete from 10.0.2.15:39604
java.lang.NullPointerException
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkStickyBit(FSPermissionChecker.java:561)
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:221)
at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkPermission(FSDirectory.java:1519)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem$49.performTask(FSNamesystem.java:8289)
at io.hops.transaction.handler.TransactionalRequestHandler.execute(TransactionalRequestHandler.java:100)
at io.hops.transaction.handler.HopsTransactionalRequestHandler.execute(HopsTransactionalRequestHandler.java:50)
at io.hops.transaction.handler.RequestHandler.handle(RequestHandler.java:68)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getPathExistingINodesFromDB(FSNamesystem.java:8328)
at org.apache.hadoop.hdfs.server.namenode.FSDirDeleteOp.delete(FSDirDeleteOp.java:107)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.delete(FSNamesystem.java:3340)
at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.delete(NameNodeRpcServer.java:821)
at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.delete(ClientNamenodeProtocolServerSideTranslatorPB.java:701)
at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)
at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:447)
at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:996)
at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:850)
at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:793)
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:1929)
at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2786)

Status

Assignee

Unassigned

Reporter

Salman Niazi

Labels

None

Priority

Medium
Configure