[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error in using kafka in flink


I downloaded kafka and followed these instructions step by step:

cd kafka_2.11-2

# start zookeeper server
./bin/ ./config/

# start broker
./bin/ ./config/ 

# create topic “test”
 ./bin/ --create --topic test --zookeeper localhost:2181 --partitions 1 --replication-f

# consume from the topic using the console producer
./bin/ --topic test --zookeeper localhost:2181

# produce something into the topic (write something and hit enter)
./bin/ --topic test --broker-list localhost:9092

Also, I added "flink-connector-kafka" and "kafka-client" dependencies to "pom.xml". 
But while I run the example of "Monitoring the Wikipedia Edit Stream" I got this error:
"cannot resolve symbol FlinkKafkaProducer08". I searched a lot but I could n't find the solution. 

Would you please help me?

Thank you in advance.