camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Cosentino (JIRA)" <>
Subject [jira] [Commented] (CAMEL-10586) make the kafka endpoint a little easier to use
Date Fri, 09 Dec 2016 19:53:58 GMT


Andrea Cosentino commented on CAMEL-10586:

Agreed. It is difficult to setup a Kafka endpoint at the moment.

> make the kafka endpoint a little easier to use
> ----------------------------------------------
>                 Key: CAMEL-10586
>                 URL:
>             Project: Camel
>          Issue Type: Improvement
>          Components: ka, kafka
>            Reporter: james strachan
> when using, say, JMS or activemq endpoints you can send text to a destination and it
all kinda works OOTB. However it seems pretty hard to actually send anyhting to the kafka
> I wonder if we could do a bit more to make it easier to use as a camel endpoint?
> e.g. if I invoke a HTTP endpoint then pipe the result to Kafka I get:
> {code}
> org.apache.kafka.common.errors.SerializationException: Can't convert value of class$WrappedInputStream
to class org.apache.kafka.common.serialization.StringSerializer specified in value.serializer
> {code}
> seems like it'd be nice if there's no configured serializer to assume its bytes / string?
> If I send to the dataformat endpoint first to force conversion to a String:
> {code}
> to("dataformat:string:unmarshal").
> to("kafka://kafka:9092?topic=cheese&groupId=group1")
> {code}
> then I get: 
> {code}
> 17:34:10.212 [Camel (Funktion) thread #0 - timer://foo] WARN  o.a.c.component.kafka.KafkaProducer
- No message key or partition key set
> {code}
> and there's no easy way to pass in a message key or partition key via the URI parameters
from what I can see. 
> I wonder if we should support a URI parameter for setting the partition key + message

This message was sent by Atlassian JIRA

View raw message