Wr
Ahmao_
别问 今年18
展开
-
JAVA | lang.ClassNotFoundException:org.apache.flink.streaming.api.functions.source.SourceFunction
IDEA 运行flink任务时遇到的问题Error: A JNI error has occurred, please check your installation and try againException in thread “main” java.lang.NoClassDefFoundError: org/apache/flink/streaming/api/functions/source/SourceFunctionat java.lang.Class.getDeclaredMeth原创 2020-12-29 17:35:23 · 3533 阅读 · 1 评论 -
JAVA | The types of the interface org.apache.flink.api.common.functions.FlatMapFunction could not be
运行flink任务时遇到的问题The types of the interface org.apache.flink.api.common.functions.FlatMapFunction could not be inferred. Support for synthetic interfaces, lambdas, and generic or raw types is limited at this point解决方法flatmap()需要指定返回的类型 .flatMap(……) .r原创 2020-12-29 17:29:29 · 1019 阅读 · 0 评论 -
JAVA | java.lang.ClassNotFoundException: org.apache.flink.api.common.functions.FlatMapFunction
运行flink任务时遇到的问题Caused by: java.lang.ClassNotFoundException: org.apache.flink.api.common.functions.FlatMapFunction…解决方法重新运行,就不报这个错误了原创 2020-12-29 17:27:45 · 2565 阅读 · 0 评论 -
VS C++ | cin读入被跳过
问题描述在while循环里读入int型时cin >> x,如果在控制台输入char,x无法读入,C++会跳过cin,进入下一个while循环,就会使程序反复进行读入操作而又读不到数据,陷入死循环。解决方法清空输入流缓冲区cin.clear(); //错误位重置cin.ignore(100, '\n'); //忽略100个字符,直到遇到'\n'...原创 2019-05-13 16:22:38 · 3089 阅读 · 5 评论