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

ASF GitHub Bot commented on HADOOP-19287:
-----------------------------------------

cxzl25 opened a new pull request, #7068:
URL: https://github.com/apache/hadoop/pull/7068

   ### Description of PR
   
   `KMSTokenRenewer` uses `KMSClientProvider#TOKEN_KIND` as a judgment. 
`KMSClientProvider` requires class `BouncyCastleProvider` to load, which leads 
to `ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider`.
   
   ```java
   Exception in thread "main" java.lang.NoClassDefFoundError: 
org/bouncycastle/jce/provider/BouncyCastleProvider
       at 
org.apache.hadoop.crypto.key.kms.KMSClientProvider$KMSTokenRenewer.handleKind(KMSClientProvider.java:180)
       at org.apache.hadoop.security.token.Token.getRenewer(Token.java:467)
       at org.apache.hadoop.security.token.Token.renew(Token.java:500)
       at 
org.apache.spark.deploy.security.HadoopFSDelegationTokenProvider.$anonfun$getTokenRenewalInterval$3(HadoopFSDelegationTokenProvider.scala:147)
       at 
scala.runtime.java8.JFunction0$mcJ$sp.apply(JFunction0$mcJ$sp.scala:17)
       at scala.util.Try$.apply(Try.scala:217)
       at 
org.apache.spark.deploy.security.HadoopFSDelegationTokenProvider.$anonfun$getTokenRenewalInterval$2(HadoopFSDelegationTokenProvider.scala:146)
 
   ```
   
   ### How was this patch tested?
   Production environment verification
   
   ### For code changes:
   
   - [ ] Does the title or this PR starts with the corresponding JIRA issue id 
(e.g. 'HADOOP-17799. Your PR title ...')?
   - [ ] Object storage: have the integration tests been executed and the 
endpoint declared according to the connector-specific documentation?
   - [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)?
   - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, 
`NOTICE-binary` files?
   
   




> Fix KMSTokenRenewer#handleKind dependency on BouncyCastleProvider class
> -----------------------------------------------------------------------
>
>                 Key: HADOOP-19287
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19287
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: dzcxzl
>            Priority: Major
>
>  
> {code:java}
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/bouncycastle/jce/provider/BouncyCastleProvider
>     at 
> org.apache.hadoop.crypto.key.kms.KMSClientProvider$KMSTokenRenewer.handleKind(KMSClientProvider.java:180)
>     at org.apache.hadoop.security.token.Token.getRenewer(Token.java:467)
>     at org.apache.hadoop.security.token.Token.renew(Token.java:500)
>     at 
> org.apache.spark.deploy.security.HadoopFSDelegationTokenProvider.$anonfun$getTokenRenewalInterval$3(HadoopFSDelegationTokenProvider.scala:147)
>     at scala.runtime.java8.JFunction0$mcJ$sp.apply(JFunction0$mcJ$sp.scala:17)
>     at scala.util.Try$.apply(Try.scala:217)
>     at 
> org.apache.spark.deploy.security.HadoopFSDelegationTokenProvider.$anonfun$getTokenRenewalInterval$2(HadoopFSDelegationTokenProvider.scala:146)
>  {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