This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new c9232065106 [fix](iceberg)Fix the failure of creating a table in COS
(#49885)
c9232065106 is described below
commit c923206510656cd7aad147e287478e6325a765fa
Author: wuwenchi <[email protected]>
AuthorDate: Wed Apr 9 14:42:52 2025 +0800
[fix](iceberg)Fix the failure of creating a table in COS (#49885)
### What problem does this PR solve?
Problem Summary:
When use JDK17 with cos, if create an iceberg table, an error will
occur:
```
java.lang.IllegalAccessError: class
org.apache.hadoop.fs.cosn.buffer.CosNMappedBuffer (in unnamed module
@0x4bb33f74) cannot access class sun.nio.ch.FileChannelImpl (in module
java.base) because module java.base does not export
sun.nio.ch to unnamed module @0x4bb33f74
```
so, we should add JVM config: `--add-opens
java.base/sun.nio.ch=ALL-UNNAMED`.
---
conf/fe.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/conf/fe.conf b/conf/fe.conf
index d2698d6f953..d534a404069 100644
--- a/conf/fe.conf
+++ b/conf/fe.conf
@@ -27,7 +27,7 @@ CUR_DATE=`date +%Y%m%d-%H%M%S`
LOG_DIR = ${DORIS_HOME}/log
# For jdk 17, this JAVA_OPTS will be used as default JVM options
-JAVA_OPTS_FOR_JDK_17="-Dfile.encoding=UTF-8
-Djavax.security.auth.useSubjectCredsOnly=false -Xmx8192m -Xms8192m
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$LOG_DIR
-Xlog:gc*,classhisto*=trace:$LOG_DIR/fe.gc.log.$CUR_DATE:time,uptime:filecount=10,filesize=50M
--add-opens=java.base/java.nio=ALL-UNNAMED --add-opens
java.base/jdk.internal.ref=ALL-UNNAMED"
+JAVA_OPTS_FOR_JDK_17="-Dfile.encoding=UTF-8
-Djavax.security.auth.useSubjectCredsOnly=false -Xmx8192m -Xms8192m
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$LOG_DIR
-Xlog:gc*,classhisto*=trace:$LOG_DIR/fe.gc.log.$CUR_DATE:time,uptime:filecount=10,filesize=50M
--add-opens=java.base/java.nio=ALL-UNNAMED --add-opens
java.base/jdk.internal.ref=ALL-UNNAMED --add-opens
java.base/sun.nio.ch=ALL-UNNAMED"
# Set your own JAVA_HOME
# JAVA_HOME=/path/to/jdk/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]