flink scala流媒体错误java.lang.NoSuchMethodError:org.apache.flink.util.PropertiesUtil.getBoolean(Ljava / util / Properties; Ljava / lang / String; Z)Z

问题描述 投票:0回答:1
 flink-1.2.0]# ./bin/flink run /streaming/mvn-flinkstreaming-scala/mvn-flinkstreaming-scala-1.0.jar

集群配置:具有JobManager的独立集群,位于localhost / 127.0.0.1:6123使用地址localhost:6123连接到JobManager。JobManager Web界面地址http://localhost:8081开始执行程序


程序完成,但有以下例外:

java.lang.NoSuchMethodError: org.apache.flink.util.PropertiesUtil.getBoolean(Ljava/util/Properties;Ljava/lang/String;Z)Z
    at org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumer.<init>(FlinkKafkaConsumer.java:192)
    at org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumer.<init>(FlinkKafkaConsumer.java:141)
    at org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumer.<init>(FlinkKafkaConsumer.java:128)
    at org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumer.<init>(FlinkKafkaConsumer.java:101)
    at com.gavstech.streams.flink.StreamingJob$.main(StreamingJob.scala:21)
    at com.gavstech.streams.flink.StreamingJob.main(StreamingJob.scala)
    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:528)
    at org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:419)
    at org.apache.flink.client.program.ClusterClient.run(ClusterClient.java:339)
    at org.apache.flink.client.CliFrontend.executeProgram(CliFrontend.java:831)
    at org.apache.flink.client.CliFrontend.run(CliFrontend.java:256)
    at org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:1073)
    at org.apache.flink.client.CliFrontend$2.call(CliFrontend.java:1120)
    at org.apache.flink.client.CliFrontend$2.call(CliFrontend.java:1117)
    at org.apache.flink.runtime.security.HadoopSecurityContext$1.run(HadoopSecurityContext.java:43)
    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:1657)
    at org.apache.flink.runtime.security.HadoopSecurityContext.runSecured(HadoopSecurityContext.java:40)
    at org.apache.flink.client.CliFrontend.main(CliFrontend.java:1116)

Pom.xml快照

    <flink.version>1.10.0</flink.version>
    <scala.binary.version>2.12</scala.binary.version>
    <scala.version>2.12.8</scala.version>
scala apache-flink flink-streaming
1个回答
0
投票

此问题是由在Flink 1.2.0群集上运行Flink 1.10.0客户端引起的。将群集升级到1.10.0解决了该问题。

© www.soinside.com 2019 - 2024. All rights reserved.