This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch auto-pick-49885-branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/auto-pick-49885-branch-3.0 by 
this push:
     new e7ecc8bcfca [fix](iceberg)Fix the failure of creating a table in COS  
(#49885)
e7ecc8bcfca is described below

commit e7ecc8bcfcadb610066031f0116e8bc097d5ea56
Author: wuwenchi <wuwen...@selectdb.com>
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 72734a86733..bdaa7bb4218 100644
--- a/conf/fe.conf
+++ b/conf/fe.conf
@@ -30,7 +30,7 @@ LOG_DIR = ${DORIS_HOME}/log
 JAVA_OPTS="-Dfile.encoding=UTF-8 
-Djavax.security.auth.useSubjectCredsOnly=false -Xss4m -Xmx8192m 
-XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:MaxGCPauseMillis=200 
-XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintClassHistogramAfterFullGC 
-Xloggc:$LOG_DIR/log/fe.gc.log.$CUR_DATE -XX:+UseGCLogFileRotation 
-XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=50M 
-Dlog4j2.formatMsgNoLookups=true"
 
 # 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: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to