Closed cwoods-cpointe closed 1 month ago
Ran into a test issue with Spark needing to use an internal API that has been made inaccessible by default:
[ERROR] Run 1: java.lang.IllegalAccessError: class org.apache.spark.storage.StorageUtils$ (in unnamed module @0x68999068) cannot access class sun.nio.ch.DirectBuffer (in module java.base) because module java.base does not export sun.nio.ch to unnamed module @0x68999068
Resolved by exporting it in the surefire plugin
<argLine>--add-exports java.base/sun.nio.ch=ALL-UNNAMED</argLine>
spark/java support matrix shows 3.4.x supports java17 so docker images should be good - link
There is a conflict with our jackson and spark dependencies
Scala module 2.14.2 requires Jackson Databind version >= 2.14.0 and < 2.15.0 - Found jackson-databind version 2.15.0
.
To mitigate this, we should try and bump up our spark version
Test Steps passed. Ticket Resolved.
Description
In https://github.com/boozallen/aissemble/issues/133 we modified the build-parent to use JDK 17. When building aiSSEMBLE with the updated build-parent, some modules do not build successfully. This is a series of ticket to fix broken modules. This issue will focus on the spark pipeline functionality
DOD
Test Strategy/Script
mvn clean install
and resolve all manual actions relating to sparktilt up
Test 2 - spark migration
mvn org.technologybrewery.baton:baton-maven-plugin:baton-migrate
References/Additional Context
None