[ 
https://issues.apache.org/jira/browse/KAFKA-7855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16751191#comment-16751191
 ] 

ASF GitHub Bot commented on KAFKA-7855:
---------------------------------------

aurlien commented on pull request #6194: KAFKA-7855: [WIP] Kafka Streams Maven 
Archetype quickstart fails to compile out of the box
URL: https://github.com/apache/kafka/pull/6194
 
 
   In the LineSplit.java example, the untyped KStream is resolved to 
`KStream<Object, Object>`. `value.split(..)` then  fails to build, because 
value is of type Object. 
   
   Other possible solutions would be to add the type to the builder:
   `builder.<String, String>stream(...).flatmap(..).to(...)`, or 
`builder.stream(..., Consumed.with(Serdes.String(), Serdes.String()))`.
   
   This change matches the code in the 
[tutorial](http://kafka.apache.org/21/documentation/streams/tutorial).
   
   WIP: It should be tested during compile that the Java resource files 
compiles. However, I haven't found any way to achieve this. Feedback 
appreciated! 
   
   ### Committer Checklist (excluded from commit message)
   - [ x ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Kafka Streams Maven Archetype quickstart fails to compile out of the box
> ------------------------------------------------------------------------
>
>                 Key: KAFKA-7855
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7855
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams
>    Affects Versions: 2.1.0
>         Environment: Java 8, OS X 10.13.6
>            Reporter: Michael Drogalis
>            Priority: Major
>              Labels: newbie++
>         Attachments: output.log
>
>
> When I follow the [quickstart 
> tutorial|https://kafka.apache.org/21/documentation/streams/tutorial] and 
> issue the command to set up a new Maven project, the generated example fails 
> to compile. Adding a Produced.with() on the source seems to fix this. I've 
> attached the compiler output.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to