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

ASF subversion and git services commented on NIFI-11741:
--------------------------------------------------------

Commit 01fa3773fb32de9ced47f1c16100a0eff482213a in nifi's branch 
refs/heads/main from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=01fa3773fb ]

NIFI-11741 Added Guava dependency to Ranger assembly includes

This closes #7423

Co-authored-by: Zoltan Kornel Torok <[email protected]>
Co-authored-by: David Handermann <[email protected]>
Signed-off-by: David Handermann <[email protected]>


> Ranger CredentialBuilder throws NoClassDefFoundException - 
> com/google/common/base/Preconditions
> -----------------------------------------------------------------------------------------------
>
>                 Key: NIFI-11741
>                 URL: https://issues.apache.org/jira/browse/NIFI-11741
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.22.0
>            Reporter: Zoltán Kornél Török
>            Assignee: Zoltán Kornél Török
>            Priority: Major
>             Fix For: 1.latest, 2.latest
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> In the past, there was a similar bug - 
> https://issues.apache.org/jira/browse/NIFI-10552
> It seems some of the lib changes or something else caused, that google guava 
> library is not included into ext/ranger/install/lib/, which cause the 
> following error:
> {code}
> SLF4J: No SLF4J providers were found.
> SLF4J: Defaulting to no-operation (NOP) logger implementation
> SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> com/google/common/base/Preconditions
>       at 
> org.apache.hadoop.conf.Configuration$DeprecationDelta.<init>(Configuration.java:430)
>       at 
> org.apache.hadoop.conf.Configuration$DeprecationDelta.<init>(Configuration.java:443)
>       at org.apache.hadoop.conf.Configuration.<clinit>(Configuration.java:525)
>       at 
> org.apache.ranger.credentialapi.CredentialReader.getDecryptedString(CredentialReader.java:41)
>       at 
> org.apache.ranger.credentialapi.buildks.createCredential(buildks.java:87)
>       at org.apache.ranger.credentialapi.buildks.main(buildks.java:41)
> Caused by: java.lang.ClassNotFoundException: 
> com.google.common.base.Preconditions
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
>       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
>       ... 6 more
> {code}
> Command to reproduce:
> {code}
> java -cp 
> "nifi-assembly/target/nifi-2.0.0-SNAPSHOT-bin/nifi-2.0.0-SNAPSHOT/ext/ranger/install/lib/*"
>  org.apache.ranger.credentialapi.buildks create sslTrustStore -value "test" 
> -provider "jceks://file/<<absolute_path>>/test2.jceks"
> {code}



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

Reply via email to