Hi everyone,
I’m currently encountering an issue when trying to create a Spark context using the Create Spark Context (Livy) node in KNIME 5.4.2. The same workflow works perfectly in KNIME 4.6, but in the newer version I receive the following error:
Execute failed: org/bouncycastle/jce/provider/BouncyCastleProvider
java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider
…
Caused by: java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider cannot be found by org.apache.hadoop.client_3.4.0.knimebd-20241108
This happens when connecting to WebHDFS with SSL, and from what I understand, it’s related to a missing dependency: the Bouncy Castle security provider. It seems this is required by the Hadoop libraries for encryption and secure communication when accessing HDFS.
My guess is that KNIME 5.4.2 no longer includes this library by default, while KNIME 4.6 did.
Questions:
-
Has anyone else experienced this issue when migrating workflows from KNIME 4.x to 5.x?
-
Is there a recommended way to manually include the Bouncy Castle JAR (e.g., via the dropins/ folder or through a specific plugin)?
-
Could this be related to changes in how KNIME packages the Hadoop/Spark integrations in version 5.x?
Any help or insights would be greatly appreciated!
Thanks in advance,
And