Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/apache-kafka/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache kafka 阿帕奇·弗林克·卡夫卡_Apache Kafka_Apache Flink_Flink Streaming - Fatal编程技术网

Apache kafka 阿帕奇·弗林克·卡夫卡

Apache kafka 阿帕奇·弗林克·卡夫卡,apache-kafka,apache-flink,flink-streaming,Apache Kafka,Apache Flink,Flink Streaming,我正在尝试将ApacheKafka 2.11-0.10.0.0与ApacheFlink 1.1.2集成。我正在使用scala shell对其进行测试,并得到以下错误 找不到类org.apache.flink.streaming.api.checkpoint.checkpoint通知程序 我已经将org.apache.flink.streaming jar添加到类路径中,但这没有帮助。我一直导入到org.apache.flink.streaming.api.checkpoint。这仍然没有帮助。下

我正在尝试将ApacheKafka 2.11-0.10.0.0与ApacheFlink 1.1.2集成。我正在使用scala shell对其进行测试,并得到以下错误

找不到类org.apache.flink.streaming.api.checkpoint.checkpoint通知程序

我已经将org.apache.flink.streaming jar添加到类路径中,但这没有帮助。我一直导入到org.apache.flink.streaming.api.checkpoint。这仍然没有帮助。下面是我在shell中运行的代码

 import org.apache.flink.streaming.connectors.kafka._
 import org.apache.flink.streaming.util.serialization.SimpleStringSchema
 import org.apache.flink._
 import java.util._
 val properties = new Properties()
 properties.setProperty("bootstrap.servers", "localhost:9092")
 properties.setProperty("zookeeper.connect", "localhost:2181")
 properties.setProperty("group.id", "test")
 val myFetcher = FlinkKafkaConsumer.FetcherType.NEW_HIGH_LEVEL
 val myHandler = FlinkKafkaConsumer.OffsetStore.FLINK_ZOOKEEPER
 senv.addSource(new FlinkKafkaConsumer[String]("topic", new SimpleStringSchema(), properties, myHandler, myFetcher)).print
我也尝试过使用FlinkKafkaConsumer081和FlinkKafkaConsumer082方法而不是FlinkKafkaConsumer方法,但仍然得到相同的错误

我注意到flink connector kafka jar自2月16日以来一直没有更新过。这个罐子用错了吗?我在maven central Flink中找到了卡夫卡基地2号11。我应该改用那个罐子吗


请帮忙

版本冲突。我相信,在Flink 1.0中,这个类被删除了。所以你可能有一个旧版本的罐子。检查以确保所有内容都已更新为Flink 1.1.2,即已更新。谢谢你的帮助!