I wrote the Kafka Streaming application and I want to deploy it on Kafka cluster. So I built a jar file and run it using the command:
java -jar KafkaProcessing-1.0-SNAPSHOT-jar-with-dependencies.jar testTopic kafka1:9092,kafka2:9092 zookeeper1:2181,zookeeper2:2181 output
It runs correctly but the job is running on the machine I run above command! I thought when I specify BOOTSTRAP-SERVERS
it automatically does computing on cluster, not on the host machine!
So my question is how can I submit Kafka streaming job on kafka cluster?
Like Spark and Flink that provided commands spark-submit
and flink run
to deploy applications on the cluster.