[
https://issues.apache.org/jira/browse/HDDS-11424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Abhishek Pal updated HDDS-11424:
--------------------------------
External issue URL: (was:
https://issues.apache.org/jira/browse/HADOOP-19275)
> NullPointerException encountered during execution of 'ozone dtutil cancel'
> command
> ----------------------------------------------------------------------------------
>
> Key: HDDS-11424
> URL: https://issues.apache.org/jira/browse/HDDS-11424
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Karn Kumar Singh
> Assignee: Abhishek Pal
> Priority: Major
>
> I tried executing the 'ozone dtutil cancel' command and encountered
> NullPointerException.
> *Repro step:*
> # Create a token using the "ozone dtutil get" command and pass the hdfs
> scheme.
> # Cancel one of the aliases using the 'ozone dtutil cancel' command of the
> token file.
> *Log:*
> {code:java}
> # ozone dtutil get hdfs://ns1 -alias test -renewer hdfs bug_ozone
> 24/09/05 15:15:42 INFO hdfs.DFSClient: Created token for hdfs:
> HDFS_DELEGATION_TOKEN [email protected], renewer=hdfs, realUser=,
> issueDate=1725549342888, maxDate=1726154142888, sequenceNumber=15,
> masterKeyId=11 on ha-hdfs:ns1
> 24/09/05 15:15:42 INFO token.DtFileOperations: Add token with service test
> # ozone dtutil print bug_ozone
> File: bug_ozone
> Token kind Service Renewer Exp date
> URL enc token
> --------------------------------------------------------------------------------
> HDFS_DELEGATION_TOKEN ha-hdfs:ns1 hdfs 9/12/24, 3:15
> PM *****************
> HDFS_DELEGATION_TOKEN test hdfs 9/12/24, 3:15
> PM *****************
> # ozone dtutil cancel -alias test bug_ozone
> dtutil cancel -alias <alias> [-format (java|protobuf)] filename...
> java.lang.NullPointerException
> at
> org.apache.hadoop.security.authentication.util.KerberosName.getShortName(KerberosName.java:422)
> at org.apache.hadoop.security.User.<init>(User.java:48)
> at org.apache.hadoop.security.User.<init>(User.java:43)
> at
> org.apache.hadoop.security.UserGroupInformation.createRemoteUser(UserGroupInformation.java:1418)
> at
> org.apache.hadoop.security.UserGroupInformation.createRemoteUser(UserGroupInformation.java:1402)
> at
> org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier.getUser(AbstractDelegationTokenIdentifier.java:80)
> at
> org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier.getUser(DelegationTokenIdentifier.java:81)
> at
> org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier.toString(DelegationTokenIdentifier.java:91)
> at java.base/java.lang.String.valueOf(String.java:2951)
> at java.base/java.lang.StringBuilder.append(StringBuilder.java:168)
> at
> org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier.stringifyToken(DelegationTokenIdentifier.java:123)
> at org.apache.hadoop.hdfs.DFSClient$Renewer.cancel(DFSClient.java:804)
> at org.apache.hadoop.security.token.Token.cancel(Token.java:527)
> at
> org.apache.hadoop.security.token.DtFileOperations.removeTokenFromFile(DtFileOperations.java:283)
> at
> org.apache.hadoop.security.token.DtUtilShell$Remove.execute(DtUtilShell.java:320)
> at org.apache.hadoop.tools.CommandShell.run(CommandShell.java:72)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:81)
> at org.apache.hadoop.security.token.DtUtilShell.main(DtUtilShell.java:361)
> # ozone dtutil remove -alias test bug_ozone
> # ozone dtutil print bug_ozone
> File: bug_ozone
> Token kind Service Renewer Exp date
> URL enc token
> --------------------------------------------------------------------------------
> HDFS_DELEGATION_TOKEN ha-hdfs:ns1 hdfs 9/12/24, 3:15
> PM *****************
> # ozone dtutil cancel -alias ha-hdfs:ns1 bug_ozone
> dtutil cancel -alias <alias> [-format (java|protobuf)] filename...
> java.lang.NullPointerException
> at
> org.apache.hadoop.security.authentication.util.KerberosName.getShortName(KerberosName.java:422)
> at org.apache.hadoop.security.User.<init>(User.java:48)
> at org.apache.hadoop.security.User.<init>(User.java:43)
> at
> org.apache.hadoop.security.UserGroupInformation.createRemoteUser(UserGroupInformation.java:1418)
> at
> org.apache.hadoop.security.UserGroupInformation.createRemoteUser(UserGroupInformation.java:1402)
> at
> org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier.getUser(AbstractDelegationTokenIdentifier.java:80)
> at
> org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier.getUser(DelegationTokenIdentifier.java:81)
> at
> org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier.toString(DelegationTokenIdentifier.java:91)
> at java.base/java.lang.String.valueOf(String.java:2951)
> at java.base/java.lang.StringBuilder.append(StringBuilder.java:168)
> at
> org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier.stringifyToken(DelegationTokenIdentifier.java:123)
> at org.apache.hadoop.hdfs.DFSClient$Renewer.cancel(DFSClient.java:804)
> at org.apache.hadoop.security.token.Token.cancel(Token.java:527)
> at
> org.apache.hadoop.security.token.DtFileOperations.removeTokenFromFile(DtFileOperations.java:283)
> at
> org.apache.hadoop.security.token.DtUtilShell$Remove.execute(DtUtilShell.java:320)
> at org.apache.hadoop.tools.CommandShell.run(CommandShell.java:72)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:81)
> at
> org.apache.hadoop.security.token.DtUtilShell.main(DtUtilShell.java:361)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]