The following code indicates that you want to use "encode" as the key
associated with the message. Is that your intend? If so, you need to
specify StringEncoder as the "key.serializer.class". Otherwise, use the api
that doesn't specify the key.
val producerData = new KeyedMessage[String,
MemberRecord]("topic-Encoded", "encode", message)
On Thu, Jul 18, 2013 at 9:19 PM, prashant amar <[EMAIL PROTECTED]> wrote: