Hi, all
some error occurred when I run flink in minicluster, flink-version:1.11、scala-version:2.12.0. Error:(33, 41) could not find implicit value for evidence parameter of type org.apache.flink.api.common.typeinfo.TypeInformation[(Int, String)] val solutionInput = env.fromElements((1, "1")) Error:(33, 41) not enough arguments for method fromElements: (implicit evidence$14: scala.reflect.ClassTag[(Int, String)], implicit evidence$15: org.apache.flink.api.common.typeinfo.TypeInformation[(Int, String)])org.apache.flink.api.scala.DataSet[(Int, String)]. Unspecified value parameter evidence$15. val solutionInput = env.fromElements((1, "1")) Error:(34, 40) could not find implicit value for evidence parameter of type org.apache.flink.api.common.typeinfo.TypeInformation[(Int, String)] val worksetInput = env.fromElements((2, "2")) Error:(34, 40) not enough arguments for method fromElements: (implicit evidence$14: scala.reflect.ClassTag[(Int, String)], implicit evidence$15: org.apache.flink.api.common.typeinfo.TypeInformation[(Int, String)])org.apache.flink.api.scala.DataSet[(Int, String)]. Unspecified value parameter evidence$15. val worksetInput = env.fromElements((2, "2")) Error:(47, 41) could not find implicit value for evidence parameter of type org.apache.flink.api.common.typeinfo.TypeInformation[(Int, String)] val solutionInput = env.fromElements((1, "1")) thanks |
Hi yu, Have you add "import org.apache.flink.api.scala._"? It seems should be ok if the import has been added in the program: import org.apache.flink.api.scala._ Best, Yun
|
thanks Yun Gao! have added "import org.apache.flink.api.scala._", I just to run wordcount in idea .On Tue, Jun 23, 2020 at 11:16 AM Yun Gao <[hidden email]> wrote:
|
Hi Yu, I tried WordCount and the attached test, it should be able to run normally in my IDEA. Could you have a check of the imported project, or reimport the project if there are still problems ? Best, Yun
|
In reply to this post by 王宇
Hi, your error matches what I see when I forget to import import org.apache.flink.api.scala._ Could you please double-check and if you did that post a (minimal) example? Best, Arvid On Tue, Jun 23, 2020 at 3:42 AM 王宇 <[hidden email]> wrote:
-- Arvid Heise | Senior Java Developer Follow us @VervericaData -- Join Flink Forward - The Apache Flink Conference Stream Processing | Event Driven | Real Time -- Ververica GmbH | Invalidenstrasse 115, 10115 Berlin, Germany -- Ververica GmbHRegistered at Amtsgericht Charlottenburg: HRB 158244 B Managing Directors: Timothy Alexander Steinert, Yip Park Tung Jason, Ji (Toni) Cheng |
Free forum by Nabble | Edit this page |