org.apache.flink.api.java.ClosureCleaner 的非法反射访问

AMA*_*AVA 6 flink-streaming

当我在 Apache flink 中运行SocketWindowWordCount程序时,它显示一个

警告:org.apache.flink.api.java.ClosureCleaner 的非法反射访问

WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.apache.flink.api.java.ClosureCleaner (file:/home/aman.srivastava/Downloads/flink-1.10.0/lib/flink-dist_2.11-1.10.0.jar) to field java.lang.String.value WARNING: Please consider reporting this to the maintainers of org.apache.flink.api.java.ClosureCleaner WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Job has been submitted with JobID a4badaa76080e47e82a322a4e2060e45

win*_*ind 6

此警告是因为您可能使用 Java 11。Flink 文档说:

这些警告被认为是无害的,将在未来的 Flink 版本中解决。

您可以在此处找到更多信息:https : //ci.apache.org/projects/flink/flink-docs-stable/release-notes/flink-1.10.html#java-11-support-flink-10725