Flink上执行storm拓扑,在yarn模式提交job时,找不到jobmanager-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

Flink上执行storm拓扑,在yarn模式提交job时,找不到jobmanager

keybo 2018-10-30 17:19:23 2811

问题描述:Flink上执行storm拓扑,在yarn模式提交job时,找不到jobmanager

-- 需求:storm的任务迁移到flink上,为了减少改动量,使用的flink兼容storm。
-- 参考:https://flink.apache.org/news/2015/12/11/storm-compatibility.html
-- 现象:无法正常提交job。从日志上看问题出在无法找到yarn模式下的jobmanager

报错如下:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/flink-1.4.2/lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-5.11.1-1.cdh5.11.1.p0.4/jars/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
java.lang.RuntimeException: Could not connect to Flink JobManager with address localhost:6123
    at org.apache.flink.storm.api.FlinkClient.getTopologyJobId(FlinkClient.java:304)
    at org.apache.flink.storm.api.FlinkSubmitter.submitTopology(FlinkSubmitter.java:107)
    at com.meetyou.antispam.Main.main(Main.java:52)
    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.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:525)
    at org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:417)
    at org.apache.flink.client.program.ClusterClient.run(ClusterClient.java:396)
    at org.apache.flink.client.CliFrontend.executeProgram(CliFrontend.java:802)
    at org.apache.flink.client.CliFrontend.run(CliFrontend.java:282)
    at org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:1054)
    at org.apache.flink.client.CliFrontend$1.call(CliFrontend.java:1101)
    at org.apache.flink.client.CliFrontend$1.call(CliFrontend.java:1098)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1920)
    at org.apache.flink.runtime.security.HadoopSecurityContext.runSecured(HadoopSecurityContext.java:41)
    at org.apache.flink.client.CliFrontend.main(CliFrontend.java:1098)
Caused by: java.io.IOException: Actor at akka.tcp://flink@localhost:6123/user/jobmanager not reachable. Please make sure that the actor is running and its port is reachable.
    at org.apache.flink.runtime.akka.AkkaUtils$.getActorRef(AkkaUtils.scala:532)
    at org.apache.flink.runtime.akka.AkkaUtils.getActorRef(AkkaUtils.scala)
    at org.apache.flink.storm.api.FlinkClient.getJobManager(FlinkClient.java:339)
    at org.apache.flink.storm.api.FlinkClient.getTopologyJobId(FlinkClient.java:278)
    ... 19 more
storm提交 flinkyarn找不到 执行yarn提交 找不到man flink执行找不到
分享到
取消 提交回答
全部回答(3)
  • 游客zxjbivtln4jey
    2020-02-28 17:20:40

    这个问题怎么解决的啦?我现在也是采用flink-storm做迁移,但是也是出现这个问题

    0 0
  • 1693026432109707
    2019-07-17 23:11:16

    修改一下集群的model:legacy

    0 0
  • 健东
    2019-07-17 23:11:16

    这个问题描述是很难的

    0 0
添加回答
大数据
使用钉钉扫一扫加入圈子
+ 订阅

大数据计算实践乐园,近距离学习前沿技术

相似问题
最新问题