Closed Y3NK closed 1 year ago
I tried to switch to 2.12-2.1.1 but still not working . The JARS are well present in Spark: JAVA_HOME seems to be present, delta-spark in the correct version ...
Have you maybe an idea that I can try ?
Thank you
What's your PySpark version? This looks like an issue that there are two Spark versions mixed into the classpath.
What's your PySpark version? This looks like an issue that there are two Spark versions mixed into the classpath.
The spark version is 3.3.0 and scala in 2.12.15
Thank you @zsxwing , I removed all 3.3.0 tar extracted spark folder, install pyspark 3.3.2 through pypi, retrieve 3.3.2 spark install, update the SPARK_HOME in bashrc and sourced it, and it's seems now to be working !
Thanks
Bug
Dear all, I am trying to sink a simple pySpark DataFrame in HDFS using delta format, until now without success ...
The session creation is working, I added the 2 delta dependencies:
Previously tried to use the;
spark = configure_spark_with_delta_pip(builder).getOrCreate()
but since I am using explicit .jar it should not be necessary, right ? (I had issues with .ivy dependencies...)the sink to HDFS using parquet is working, so I think HDFS & grant permission are fine...
Have you any idea what could be wrong ? Scala 2.12, Spark 3.3.0 and delta 2.2.0 should be compatible if I follow the matrix of compatibility.
I tried with
.config("spark.delta.logStore.class","org.apache.spark.sql.delta.storage.HDFSLogStore")
and without...Thank you
Jupyterlab output:
full Exception output:
Describe the problem
Impossible to sink in HDFS with delta Issues:
java.lang.AssertionError: unsafe symbol Unstable (child of package annotation) in runtime reflection universe
An error occurred while calling o80.save. : com.google.common.util.concurrent.ExecutionError: java.lang.ExceptionInInitializerError
Steps to reproduce
HDFS running Spark session getting created correctly sink to "simple" HDFS working fine failed when trying to use delta
Observed results
Works for simple HDFS parquet sink Does not work for delta format
Expected results
Same result with .delta than with parquet
Further details
Environment information
Java Home | /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.352.b08-2.el8_7.x86_64/jre -- | -- Java Version | 1.8.0_352 (Red Hat, Inc.) Scala Version | version 2.12.15Willingness to contribute
The Delta Lake Community encourages bug fix contributions. Would you or another member of your organization be willing to contribute a fix for this bug to the Delta Lake code base?