You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Paolo Patierno (JIRA)" <ji...@apache.org> on 2017/06/09 15:47:18 UTC

[jira] [Updated] (KAFKA-5419) Console consumer --key-deserializer and --value-deserializer are always overwritten by ByteArrayDeserializer

     [ https://issues.apache.org/jira/browse/KAFKA-5419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paolo Patierno updated KAFKA-5419:
----------------------------------
    Description: 
Hi,
the --key-deserializer and  --value-deserializer options passed to the command line are always overwritten here :

{code}
props.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, "org.apache.kafka.common.serialization.ByteArrayDeserializer")
props.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, "org.apache.kafka.common.serialization.ByteArrayDeserializer")
{code}

in the getNewConsumerProps() method.

Thanks,
Paolo.

  was:
Hi,
the --key-deserializer and  --value-deserializer options passed to the command line are always overwritten here :

{code}
props.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, "org.apache.kafka.common.serialization.ByteArrayDeserializer")
    props.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, "org.apache.kafka.common.serialization.ByteArrayDeserializer")
{code}

Thanks,
Paolo.


> Console consumer --key-deserializer and --value-deserializer are always overwritten by ByteArrayDeserializer
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-5419
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5419
>             Project: Kafka
>          Issue Type: Bug
>          Components: tools
>            Reporter: Paolo Patierno
>            Priority: Minor
>
> Hi,
> the --key-deserializer and  --value-deserializer options passed to the command line are always overwritten here :
> {code}
> props.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, "org.apache.kafka.common.serialization.ByteArrayDeserializer")
> props.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, "org.apache.kafka.common.serialization.ByteArrayDeserializer")
> {code}
> in the getNewConsumerProps() method.
> Thanks,
> Paolo.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)