[英]org.apache.kafka.streams.examples.wordcount.WordCountDemo does not terminate
I have launched this script and it does not end.我已经启动了这个脚本,但它并没有结束。
sudo ./bin/kafka-run-class.sh org.apache.kafka.streams.examples.wordcount.WordCountDemo
Here is the result:这是结果:
[cloudera@quickstart kafka_2.12-2.4.1]$ sudo ./bin/kafka-run-class.sh org.apache.kafka.streams.examples.wordcount.WordCountDemo
[2020-04-14 13:26:36,153] WARN The configuration 'admin.retries' was supplied but isn't a known config. (org.apache.kafka.clients.consumer.ConsumerConfig)
[2020-04-14 13:26:36,165] WARN The configuration 'admin.retry.backoff.ms' was supplied but isn't a known config. (org.apache.kafka.clients.consumer.ConsumerConfig)
It does not end.它没有结束。
Is ther any solution please?请问有什么解决办法吗?
This is the expected behaviour of the demo that you are using and you need to press ctrl-c to terminate the process.这是您正在使用的演示的预期行为,您需要按 ctrl-c 来终止进程。
If you want the demo to stop after five seconds you can use the older version of the demo that terminates after 5 seconds:如果您希望演示在五秒后停止,您可以使用在 5 秒后终止的旧版本演示:
// usually the stream application would be running forever,
// in this example we just let it run for some time and stop since the input data is finite.
Thread.sleep(5000L);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.