Shah
11/11/2025, 3:33 PMLinkageError occurred while loading main class org.apache.spark.launcher.Main java.lang.UnsupportedClassVersionError:
A little google search told me it's not finding the java installation. To resolve, I installed the latest java (jdk25). Now, the error has changed to:
Py4JJavaError: An error occurred while calling <http://None.org|None.org>.apache.spark.api.java.JavaSparkContext. : java.lang.UnsupportedOperationException: getSubject is not supported
I have checked the java path, and it's pointing to /usr/lib/jvm/java-11-openjdk-amd64/ despite explicitly mentioning /usr/lib/jvm/jdk-25.0.1-oracle-x64/bin in the environment.
But I think the main issue is, it seems, with pyspark which is not launching, throwing the same error.
Since I do not need pyspark in this project, is there a way to disable it for time being, just to test my pipeline? Or else, how else could I fix this?
Thanks!Elena Khaustova
11/11/2025, 4:37 PMpip install kedro-datasets[spark] or pip install kedro[spark]
2. Your pyproject.toml or requirements.txt includes pyspark.
3. Your settings.py or hooks.py imports Spark or defines a Spark session.
4. Your catalog.yml includes any dataset whose type starts with spark. (e.g. spark.SparkDataSet).Shah
11/11/2025, 5:01 PMShah
11/11/2025, 7:33 PM