[ 
https://issues.apache.org/jira/browse/NIFI-11741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Handermann resolved NIFI-11741.
-------------------------------------
    Fix Version/s: 2.0.0
                   1.23.0
                       (was: 1.latest)
                       (was: 2.latest)
       Resolution: Fixed

> 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: 2.0.0, 1.23.0
>
>          Time Spent: 0.5h
>  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