beam+flink整合异常

信息: Remoting shut down.

十月 23, 2017 9:10:40 下午 org.apache.beam.runners.flink.FlinkRunner run

严重: Pipeline execution failed

org.apache.flink.client.program.ProgramInvocationException: The program execution failed: Couldn't retrieve the JobExecutionResult from the JobManager.

at org.apache.flink.client.program.ClusterClient.run(ClusterClient.java:478)

at org.apache.flink.client.program.StandaloneClusterClient.submitJob(StandaloneClusterClient.java:105)

at org.apache.flink.client.program.ClusterClient.run(ClusterClient.java:442)

at org.apache.flink.client.program.ClusterClient.run(ClusterClient.java:429)

at org.apache.flink.client.program.ClusterClient.run(ClusterClient.java:404)

at org.apache.flink.client.RemoteExecutor.executePlanWithJars(RemoteExecutor.java:211)

at org.apache.flink.client.RemoteExecutor.executePlan(RemoteExecutor.java:188)

at org.apache.flink.api.java.RemoteEnvironment.execute(RemoteEnvironment.java:172)

at org.apache.beam.runners.flink.FlinkPipelineExecutionEnvironment.executePipeline(FlinkPipelineExecutionEnvironment.java:114)

at org.apache.beam.runners.flink.FlinkRunner.run(FlinkRunner.java:118)

at org.apache.beam.sdk.Pipeline.run(Pipeline.java:297)

at org.apache.beam.sdk.Pipeline.run(Pipeline.java:283)

at org.apache.beam.examples.WordCount.main(WordCount.java:184)

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:498)

at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)

at java.lang.Thread.run(Thread.java:748)

Caused by: org.apache.flink.runtime.client.JobExecutionException: Couldn't retrieve the JobExecutionResult from the JobManager.

at org.apache.flink.runtime.client.JobClient.awaitJobResult(JobClient.java:309)

at org.apache.flink.runtime.client.JobClient.submitJobAndWait(JobClient.java:396)

at org.apache.flink.client.program.ClusterClient.run(ClusterClient.java:467)

... 18 more

Caused by: org.apache.flink.runtime.client.JobClientActorConnectionTimeoutException: Lost connection to the JobManager.

at org.apache.flink.runtime.client.JobClientActor.handleMessage(JobClientActor.java:219)

at org.apache.flink.runtime.akka.FlinkUntypedActor.handleLeaderSessionID(FlinkUntypedActor.java:101)

at org.apache.flink.runtime.akka.FlinkUntypedActor.onReceive(FlinkUntypedActor.java:68)

at akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:167)

at akka.actor.Actor$class.aroundReceive(Actor.scala:467)

at akka.actor.UntypedActor.aroundReceive(UntypedActor.scala:97)

at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)

at akka.actor.ActorCell.invoke(ActorCell.scala:487)

at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)

at akka.dispatch.Mailbox.run(Mailbox.scala:220)

at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397)

at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)

at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)

at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)

at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)


解决:beam和flink使用的通信是akka,而akka在通信时通常用主机名,而不用ip,因为我在flink的配置文件中使用的是IP地址,所以报上述错误,吧flink配置中的IP改成主机名,问题解决!

你可能感兴趣的:(beam)