Prior to Flink version 1.6.2 including 1.6.1 env.getStreamGraph.getJobGraph was happily returning currently defined Graph, but in 1.6.2 this fails to compile with a pretty cryptic message AM I missing something? |
Hey, Could you show the message that You are getting? Best Regards, Dom. śr., 28 lis 2018 o 19:08 Boris Lublinsky <[hidden email]> napisał(a):
|
Here is the code
def executeLocal() : Unit = { And an error Error:(68, 63) ambiguous reference to overloaded definition, both method getJobGraph in class StreamGraph of type (x$1: org.apache.flink.api.common.JobID)org.apache.flink.runtime.jobgraph.JobGraph and method getJobGraph in class StreamingPlan of type ()org.apache.flink.runtime.jobgraph.JobGraph match expected type ? System.out.println("[info] Job ID: " + env.getStreamGraph.getJobGraph.getJobID)
|
Dominik,
Any feedback on this?
|
Hi Boris, I am not a scala expert, so I won't be able explain the root cause completely, but it is because you access empty-parameter java method as scala parameterless one (I don't know why it doesn't work). If you change your code to: env.getStreamGraph.getJobGraph().getJobID it will work. Best, Dawid On 30/11/2018 15:19, Boris Lublinsky
wrote:
Dominik, signature.asc (849 bytes) Download Attachment |
It does, weird
|
In reply to this post by Dawid Wysakowicz-2
Hey, @Dawid is right. It is a known issue in Scala. This is due to the functional nature of Scala and is explained on StackOverflow[1]. Best Regards, pt., 30 lis 2018 o 15:56 Dawid Wysakowicz <[hidden email]> napisał(a):
|
Free forum by Nabble | Edit this page |