hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "huangyitian (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-8158) when try to roll one key which not exist in kms ,will have nullpointer Exception
Date Thu, 16 Apr 2015 04:21:58 GMT
huangyitian created HDFS-8158:
---------------------------------

             Summary: when try to roll one key which not exist in kms ,will have nullpointer
Exception
                 Key: HDFS-8158
                 URL: https://issues.apache.org/jira/browse/HDFS-8158
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: encryption
    Affects Versions: 2.6.0
            Reporter: huangyitian
            Assignee: J.Andreina
            Priority: Minor


Test Step:
1.try to roll one key which is not existed in kms:
./hadoop key roll hyt
Test reslt:
will have a nullPointer Exception in Linux consol:
vm-204:/opt/OpenSource/install/hadoop/namenode/bin # ./hadoop key roll hyt
15/04/16 11:58:10 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your
platform... using builtin-java classes where applicable
Rolling key version from KeyProvider: KMSClientProvider[http://9.91.8.204:16000/kms/v1/]
  for key name: hyt
java.lang.NullPointerException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at org.apache.hadoop.util.HttpExceptionUtils.validateResponse(HttpExceptionUtils.java:157)
        at org.apache.hadoop.crypto.key.kms.KMSClientProvider.call(KMSClientProvider.java:485)
        at org.apache.hadoop.crypto.key.kms.KMSClientProvider.call(KMSClientProvider.java:443)
        at org.apache.hadoop.crypto.key.kms.KMSClientProvider.rollNewVersionInternal(KMSClientProvider.java:649)
        at org.apache.hadoop.crypto.key.kms.KMSClientProvider.rollNewVersion(KMSClientProvider.java:660)
        at org.apache.hadoop.crypto.key.KeyShell$RollCommand.execute(KeyShell.java:347)
        at org.apache.hadoop.crypto.key.KeyShell.run(KeyShell.java:79)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
        at org.apache.hadoop.crypto.key.KeyShell.main(KeyShell.java:515)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message