module java.base does not export sun.net.util to unnamed module
目录
使用jdk17启动flink1.15 报错:
java.lang.reflect.InaccessibleObjectException: Unable to make field private final byte[] java.lang.String.value accessible: module java.base does not "opens java
.lang" to unnamed module @6e60f18
解决办法:启动参数添加add-opens,可以添加在flink-conf.yaml里的env.java.opts.xxx
,这里的配置可以在config.sh
脚本里找到
--add-opens java.base/sun.net.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED
---
本文来自博客园,作者:Bingmous,转载请注明原文链接:https://www.cnblogs.com/bingmous/p/17920062.html