[
https://issues.apache.org/jira/browse/NIFI-2515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15412044#comment-15412044
]
Oleg Zhurakousky commented on NIFI-2515:
----------------------------------------
So, this was actually part of the recent change where before the change
serializers and deserializers were hard coded to ByteArray*. Meanwhile Kafka
exposes properties to supply ser/deserializers. While Kafka can do that
FlowFile's content is type-less and represented as the input stream of bytes,
so basically we need to revert back to *only* allowing ByteArray(ser/deser).
On top of the we should also log a WARN message whenever user attempts to
override serializers and deserializers
> Setting key.serializer in publish kafka leads to
> org.apache.kafka.common.errors.SerializationException
> ------------------------------------------------------------------------------------------------------
>
> Key: NIFI-2515
> URL: https://issues.apache.org/jira/browse/NIFI-2515
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 1.0.0-Beta
> Reporter: Arpit Gupta
> Assignee: Oleg Zhurakousky
> Fix For: 1.0.0, 0.8.0
>
>
> If one sets key.serializer in the publish kafka processor we see error
> {code}
> 4895-9b14-9e8b1d88755e}, body={topics=[putMessages-83cf2948-b110-2016-08-07
> 17:11:56,191 ERROR [Timer-Driven Process Thread-7]
> o.a.n.p.kafka.pubsub.PublishKafka
> PublishKafka[id=65fd2baf-0156-1000-ffff-fffff6bf89be]
> PublishKafka[id=65fd2baf-0156-1000-ffff-fffff6bf89be] failed to process due
> to org.apache.kafka.common.errors.SerializationException: Can't convert key
> of class [B to class org.apache.kafka.common.serialization.IntegerSerializer
> specified in key.serializer; rolling back session:
> org.apache.kafka.common.errors.SerializationException: Can't convert key of
> class [B to class org.apache.kafka.common.serialization.IntegerSerializer
> specified in key.serializer
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)