You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "wangyum (via GitHub)" <gi...@apache.org> on 2026/04/10 07:56:14 UTC
[PR] Build: Add Java 25 support by adding arrow-memory-unsafe to dependencies [iceberg]
wangyum opened a new pull request, #15931:
URL: https://github.com/apache/iceberg/pull/15931
## Background
This PR updates `build.gradle` and `gradle/libs.versions.toml` to support running Apache Iceberg on Java 25. The existing build was gated to JDK 17 and 21 only.
Closes #15930
## How to test
1. Download [iceberg-java25.tgz](https://github.com/user-attachments/files/26623832/iceberg-java25.tgz)
2. tar -zxf iceberg-java25.tgz && cd iceberg-java25
3. Build with Java 17: `/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home/bin/javac -cp ".:*" Reproducer.java`
4. Run with Java 25: `/Library/Java/JavaVirtualMachines/zulu-25.jdk/Contents/Home/bin/java -cp ".:*" --add-opens=java.base/java.nio=ALL-UNNAMED Reproducer`, it will throw exception. We should add `-Darrow.allocation.manager.type=Unsafe ` to run it: `/Library/Java/JavaVirtualMachines/zulu-25.jdk/Contents/Home/bin/java -cp ".:*" --add-opens=java.base/java.nio=ALL-UNNAMED -Darrow.allocation.manager.type=Unsafe Reproducer`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Build: Add Java 25 support by adding arrow-memory-unsafe to dependencies [iceberg]
Posted by "wangyum (via GitHub)" <gi...@apache.org>.
wangyum closed pull request #15931: Build: Add Java 25 support by adding arrow-memory-unsafe to dependencies
URL: https://github.com/apache/iceberg/pull/15931
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Build: Add Java 25 support by adding arrow-memory-unsafe to dependencies [iceberg]
Posted by "wangyum (via GitHub)" <gi...@apache.org>.
wangyum commented on PR #15931:
URL: https://github.com/apache/iceberg/pull/15931#issuecomment-4227928708
Fixed it by adding `--sun-misc-unsafe-memory-access=allow` on the Spark executor.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org