创建临时表时出错

mm5n2pyu  于 2021-06-21  发布在  Flink
关注(0)|答案(1)|浏览(585)

团队,我在Flink得到以下错误。

org.apache.flink.client.program.ProgramInvocationException: The program execution failed: Job execution failed.
        at org.apache.flink.client.program.ClusterClient.run(ClusterClient.java:413)
        at org.apache.flink.client.program.StandaloneClusterClient.submitJob(StandaloneClusterClient.java:92)
        at org.apache.flink.client.program.ClusterClient.run(ClusterClient.java:389)
        at org.apache.flink.client.program.ClusterClient.run(ClusterClient.java:376)
        at org.apache.flink.client.program.ContextEnvironment.execute(ContextEnvironment.java:61)
        at org.apache.flink.api.java.ExecutionEnvironment.execute(ExecutionEnvironment.java:896)
        at org.apache.flink.api.java.DataSet.count(DataSet.java:394)
        at org.apache.flink.graph.Graph.numberOfVertices(Graph.java:1256)
        at com.phoenix.etl.job.AdJob.constructFlinkPlan(AdJob.java:330)
        at com.phoenix.etl.job.AdJob.execute(AdJob.java:97)
        at com.phoenix.etl.job.BatchJob.run(BatchJob.java:38)
        at com.phoenix.etl.job.AdJob.main(AdJob.java:90)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:509)
        at org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:403)
        at org.apache.flink.client.program.ClusterClient.run(ClusterClient.java:331)
        at org.apache.flink.client.CliFrontend.executeProgram(CliFrontend.java:777)
        at org.apache.flink.client.CliFrontend.run(CliFrontend.java:253)
        at org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:1005)
        at org.apache.flink.client.CliFrontend.main(CliFrontend.java:1048)
Caused by: org.apache.flink.runtime.client.JobExecutionException: Job execution failed.
        at org.apache.flink.runtime.jobmanager.JobManager$$anonfun$handleMessage$1$$anonfun$applyOrElse$8.apply$mcV$sp(JobManager.scala:822)
        at org.apache.flink.runtime.jobmanager.JobManager$$anonfun$handleMessage$1$$anonfun$applyOrElse$8.apply(JobManager.scala:768)
        at org.apache.flink.runtime.jobmanager.JobManager$$anonfun$handleMessage$1$$anonfun$applyOrElse$8.apply(JobManager.scala:768)
        at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
        at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
        at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:41)
        at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:401)
        at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
        at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.pollAndExecAll(ForkJoinPool.java:1253)
        at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1346)
        at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
        at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Caused by: java.lang.RuntimeException: An error occurred creating the temp table.
        at org.apache.flink.runtime.operators.TempBarrier.getIterator(TempBarrier.java:98)
        at org.apache.flink.runtime.operators.BatchTask.getInput(BatchTask.java:1094)
        at org.apache.flink.runtime.operators.JoinWithSolutionSetFirstDriver.run(JoinWithSolutionSetFirstDriver.java:155)
        at org.apache.flink.runtime.operators.BatchTask.run(BatchTask.java:486)
        at org.apache.flink.runtime.iterative.task.AbstractIterativeTask.run(AbstractIterativeTask.java:146)
        at org.apache.flink.runtime.iterative.task.IterationIntermediateTask.run(IterationIntermediateTask.java:92)
        at org.apache.flink.runtime.operators.BatchTask.invoke(BatchTask.java:351)
        at org.apache.flink.runtime.taskmanager.Task.run(Task.java:584)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Cannot instantiate tuple.
        at org.apache.flink.api.java.typeutils.runtime.TupleSerializer.createInstance(TupleSerializer.java:70)
        at org.apache.flink.api.java.typeutils.runtime.TupleSerializer.createInstance(TupleSerializer.java:30)
        at org.apache.flink.runtime.operators.TempBarrier$TempWritingThread.run(TempBarrier.java:176)
Caused by: java.lang.NullPointerException
        at java.util.Objects.requireNonNull(Objects.java:203)
        at org.apache.flink.types.Either$Right.<init>(Either.java:148)
        at org.apache.flink.types.Either.Right(Either.java:46)
        at org.apache.flink.api.java.typeutils.runtime.EitherSerializer.createInstance(EitherSerializer.java:73)
        at org.apache.flink.api.java.typeutils.runtime.EitherSerializer.createInstance(EitherSerializer.java:37)
        at org.apache.flink.api.java.typeutils.runtime.TupleSerializer.createInstance(TupleSerializer.java:64)
        ... 2 more

flink版本-1.1.0
你能帮我照一下这个吗。我是在做顶点中心图遍历时得到这个的。
顶点是tuple2的数据集,边是tuple3的数据集
对于顶点和边,我可以使用collect打印值。
你好,萨耶夫

fzwojiic

fzwojiic1#

也许对你来说太晚了,但对其他有同样问题的Flink1.2的人来说可能会有所帮助,我刚刚发现了这个帖子,因为我遇到了同样的问题,你的评论帮助了我
看起来你不能使用接口,我也有同样的错误 compute(Vertex<String, VertexData> vertex, MessageIterator<Collection<MessageData>> messages) 或者 compute(Vertex<String, VertexData> vertex, MessageIterator<List<MessageData>> messages) 但它和 compute(Vertex<String, VertexData> vertex, MessageIterator<LinkedList<MessageData>> messages)

相关问题