-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
Apache Iceberg version
None
Query engine
None
Please describe the bug 🐞
With latest Iceberg code (6e432fc):
On Ubuntu 24.04:
update-java-alternatives -s /usr/lib/jvm/java-1.11.0-openjdk-arm64 # Switch to JDK 11
./gradlew clean build -x test -x integrationTest # Build IcebergError:
> Task :iceberg-spark:iceberg-spark-4.0_2.13:compileScala
[Error] /opt/code/iceberg/spark/v4.0/spark/src/main/java/org/apache/iceberg/SparkDistributedDataScan.java:41:33: error: cannot access JavaRDD
[Error] /opt/code/iceberg/spark/v4.0/spark/src/main/java/org/apache/iceberg/SparkDistributedDataScan.java:42:33: error: cannot access JavaSparkContext
[Error] /opt/code/iceberg/spark/v4.0/spark/src/main/java/org/apache/iceberg/SparkDistributedDataScan.java:43:42: error: cannot access FlatMapFunction
[Error] /opt/code/iceberg/spark/v4.0/spark/src/main/java/org/apache/iceberg/SparkDistributedDataScan.java:44:34: error: cannot access Broadcast
[Error] /opt/code/iceberg/spark/v4.0/spark/src/main/java/org/apache/iceberg/SparkDistributedDataScan.java:45:28: error: cannot access SparkSession
...
After switching to JDK 17, the failure disappeared.
I guess it's because Spark 4.0 has moved to JDK 17, while Iceberg still supports JDK 11?
Willingness to contribute
- I can contribute a fix for this bug independently
- I would be willing to contribute a fix for this bug with guidance from the Iceberg community
- I cannot contribute a fix for this bug at this time
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested