Illegal reflective access by org.apache.flink.api.java.ClosureCleaner

杀马特。学长 韩版系。学妹 提交于 2020-08-08 06:25:22

问题


When I run a SocketWindowWordCount Program in Apache flink, it shows a

WARNING: Illegal reflective access by 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


回答1:


This warning is because you probably use Java 11. Flink docs says:

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



来源:https://stackoverflow.com/questions/60754821/illegal-reflective-access-by-org-apache-flink-api-java-closurecleaner

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!