You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Zoltán Kornél Török (Jira)" <ji...@apache.org> on 2023/06/22 11:51:00 UTC
[jira] [Created] (NIFI-11741) Ranger CredentialBuilder throws NoClassDefFoundException - com/google/common/base/Preconditions
Zoltán Kornél Török created NIFI-11741:
------------------------------------------
Summary: 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
Fix For: 2.0.0, 1.23.0
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)