[ 
https://issues.apache.org/jira/browse/HDDS-11422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17891559#comment-17891559
 ] 

Scolley Huang commented on HDDS-11422:
--------------------------------------

[~karn.singh] 
I want to fix the problem. Would you assign this task to me?
 

> NullPointerException encountered during execution of 'ozone sh token print' 
> command
> -----------------------------------------------------------------------------------
>
>                 Key: HDDS-11422
>                 URL: https://issues.apache.org/jira/browse/HDDS-11422
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: Ozone CLI
>            Reporter: Karn Kumar Singh
>            Priority: Major
>
> I tried executing the 'ozone sh token print' command and encountered 
> NullPointerException.
> *Repro step:* 
>  # Create a token using the "ozone dtutil get" command and pass the hdfs 
> scheme.
>  # Print the token using the 'ozone sh token print' command.
> *Log:* 
> {code:java}
> # ozone dtutil get hdfs://ns1 token_ns
> 24/09/05 13:29:35 INFO hdfs.DFSClient: Created token for hdfs: 
> HDFS_DELEGATION_TOKEN [email protected], renewer=, realUser=, 
> issueDate=1725542975242, maxDate=1726147775242, sequenceNumber=6, 
> masterKeyId=11 on ha-hdfs:ns1
> # ozone dtutil print -alias anything token_ns
> File: token_ns
> # ozone dtutil print  token_ns
> File: token_ns
> Token kind               Service              Renewer         Exp date     
> URL enc token
> --------------------------------------------------------------------------------
> HDFS_DELEGATION_TOKEN    ha-hdfs:ns1                          9/12/24, 1:29 
> PM *********
> # ozone sh token print -t=token_ns
> java.lang.NullPointerException
>     at 
> org.apache.hadoop.ozone.shell.token.PrintTokenHandler.call(PrintTokenHandler.java:44)
>     at 
> org.apache.hadoop.ozone.shell.token.PrintTokenHandler.call(PrintTokenHandler.java:32)
>     at picocli.CommandLine.executeUserObject(CommandLine.java:2045)
>     at picocli.CommandLine.access$1500(CommandLine.java:148)
>     at 
> picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2465)
>     at picocli.CommandLine$RunLast.handle(CommandLine.java:2457)
>     at picocli.CommandLine$RunLast.handle(CommandLine.java:2419)
>     at 
> picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
>     at picocli.CommandLine$RunLast.execute(CommandLine.java:2421)
>     at picocli.CommandLine.execute(CommandLine.java:2174)
>     at org.apache.hadoop.hdds.cli.GenericCli.execute(GenericCli.java:100)
>     at 
> org.apache.hadoop.ozone.shell.OzoneShell.lambda$execute$0(OzoneShell.java:52)
>     at 
> org.apache.hadoop.hdds.tracing.TracingUtil.executeInSpan(TracingUtil.java:169)
>     at 
> org.apache.hadoop.hdds.tracing.TracingUtil.executeInNewSpan(TracingUtil.java:159)
>     at org.apache.hadoop.ozone.shell.OzoneShell.execute(OzoneShell.java:51)
>     at org.apache.hadoop.hdds.cli.GenericCli.run(GenericCli.java:91)
>     at org.apache.hadoop.ozone.shell.OzoneShell.main(OzoneShell.java:44)  
> {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]

Reply via email to