org.apache.flink.api.java.ClosureCleaner的非法反射访问 [英] Illegal reflective access by org.apache.flink.api.java.ClosureCleaner
问题描述
当我在Apache flink中运行 SocketWindowWordCount 程序时,它显示
When I run a SocketWindowWordCount Program in Apache flink, it shows a
警告:org.apache.flink.api.java.ClosureCleaner非法反射访问
警告:发生了非法的反射访问操作警告: org.apache.flink.api.java.ClosureCleaner的非法反射访问 (文件:/home/aman.srivastava/Downloads/flink-1.10.0/lib/flink-dist_2.11-1.10.0.jar)到字段java.lang.String.value警告:请考虑报告 这对org.apache.flink.api.java.ClosureCleaner的维护者警告:使用--illegal-access = warn启用 警告进一步非法反射访问操作警告:所有非法访问操作都将 在将来的版本中被拒绝Job已提交JobID a4badaa76080e47e82a322a4e2060e45
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
推荐答案
此警告是因为您可能使用了Java11.Flink文档说:
This warning is because you probably use Java 11. Flink docs says:
这些警告被认为是无害的,并将在以后的Flink版本中予以解决.
These warnings are considered harmless and will be addressed in future Flink releases.
You can find more here: https://ci.apache.org/projects/flink/flink-docs-stable/release-notes/flink-1.10.html#java-11-support-flink-10725
这篇关于org.apache.flink.api.java.ClosureCleaner的非法反射访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!