There are some solutions here
The mentioned error probably corresponds to the following exception:
java.lang.IllegalAccessError: class org.apache.spark.storage.StorageUtils$ (in unnamed module @0x12a94400) cannot access class sun.nio.ch.DirectBuffer (in module java.base) because module java.base does not export sun.nio.ch to unnamed module
Switching back to Java 11 or below is not a solution for me. How can this be solved with Java 17?