我想从Flink文档运行简单的例子。在start之后,我得到了exception:
Unable to make field private final byte[] java.lang.String.value accessible:
module java.base does not "opens java.lang" to unnamed module @228575c0
安装:
Python 3.10.6
openjdk version "19.0.2" 2023-01-17
OpenJDK Runtime Environment (build 19.0.2+7-Ubuntu-0ubuntu322.04)
OpenJDK 64-Bit Server VM (build 19.0.2+7-Ubuntu-0ubuntu322.04, mixed mode, sharing)
来自flink站点的简单代码:
https://nightlies.apache.org/flink/flink-docs-master/api/python/examples/datastream/word_count.html
Flink不支持JDK 19,只支持JDK 8和JDK 11。