Apache kafka 阿帕奇·弗林克·卡夫卡
我正在尝试将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中运行的代码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。这仍然没有帮助。下
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,即已更新。谢谢你的帮助!