Hello, I'm a developer. When I wanted to learn Kafka, I found the official
website. I found that there was an error code, the target location

--> http://kafka.apache.org/documentation/#quickstart

--> 1. GETTING STARTED

--> 1.3 Quick Start

--> STEP 7: PROCESS YOUR EVENTS WITH KAFKA STREAMS

The following code

KStream<String, String> textLines = builder.stream ("quickstart-events");
>
>
> KTable<String, Long> wordCounts = textLines
>
> .flatMapValues(line -> Arrays.asList ( line.toLowerCase ().split(" ")))
>
> .groupBy((keyIgnored, word) -> word)
>
> .count();
>
>
> wordCounts.toStream ().to("output-topic"), Produced.with ( Serdes.String
> (), Serdes.Long ()));
>



There is an extra bracket after "output topic", when I click Kafka streams
demo <http://kafka.apache.org/25/documentation/streams/quickstart> below


But I don't know who the email was sent to, so I found this email and hope
to optimize the page code.



-----------------------------------------------
Name: 刘玉川 LiuYuChuan
NickName: Lycos
PostCode:510000
MobPhone:18615183765
TelePhone:
QQ: 763999883
Addr:
广州市越秀区环市东路498号,柏丽商业中心
Baili commercial center, No. 498, Huanshi East Road, Yuexiu District,
Guangzhou City, Guangdong Province

Reply via email to