Anika Kelhanka created HADOOP-19010:
---------------------------------------

             Summary: NullPointerException thrown by Hadoop Credential Check 
command
                 Key: HADOOP-19010
                 URL: https://issues.apache.org/jira/browse/HADOOP-19010
             Project: Hadoop Common
          Issue Type: Bug
    Affects Versions: 3.3.0
            Reporter: Anika Kelhanka


*Description*: Hadoop's credential check throws {{NullPointerException}} when 
alias not found.

{code:bash}
hadoop credential check "fs.gs.proxy.username" -provider 
"jceks://file/usr/lib/hive/conf/hive.jceks" {code}

Checking aliases for CredentialProvider: 
jceks://file/usr/lib/hive/conf/hive.jceks
Enter alias password: 

java.lang.NullPointerException
at
org.apache.hadoop.security.alias.CredentialShell$CheckCommand.execute(CredentialShell.java:369)
at org.apache.hadoop.tools.CommandShell.run(CommandShell.java:73)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:82)
at 
org.apache.hadoop.security.alias.CredentialShell.main(CredentialShell.java:529)}}

*Expected Behavior:* The check command should display *check failed message* 
when alias not found similar to what it throws for incorrect alias value i.e 
following failure message:
{{Password match failed for javax.jdo.option.ConnectionPassword.}}





--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-dev-h...@hadoop.apache.org

Reply via email to