flink版本:1.8.1
java版本:java se 16
日志文档中错误:
org.apache.flink.runtime.entrypoint.ClusterEntrypoint - Could not start cluster entrypoint StandaloneSessionClusterEntrypoint.
原因:
Caused by: java.lang.IllegalAccessError: class org.apache.flink.util.NetUtils (in unnamed module @0x635eaaf1) cannot access class sun.net.util.IPAddressUtil (in module java.base) because module java.base does not export sun.net.util to unnamed module
解决办法: 将java版本换成java8(jdk8),我之前使用flink1.12和java8或者java16都是不能够启动集群,头秃。。。
详细解释可参考:
https://www.jianshu.com/p/a2cd85d7a8d6
https://www.jianshu.com/p/5dc10732de6a(感谢两位大佬的总结)