kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paolo Patierno (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KAFKA-5420) Console producer --key-serializer and --value-serializer are always overwritten by ByteArraySerializer
Date Fri, 09 Jun 2017 15:47:18 GMT

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

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

{code}
props.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, "org.apache.kafka.common.serialization.ByteArraySerializer")
props.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, "org.apache.kafka.common.serialization.ByteArraySerializer")
{code}

in the getNewProducerProps() method.

Thanks,
Paolo.

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

{code}
props.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, "org.apache.kafka.common.serialization.ByteArraySerializer")
    props.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, "org.apache.kafka.common.serialization.ByteArraySerializer")
{code}

in the getNewProducerProps() method.

Thanks,
Paolo.


> Console producer --key-serializer and --value-serializer are always overwritten by ByteArraySerializer
> ------------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-5420
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5420
>             Project: Kafka
>          Issue Type: Bug
>          Components: tools
>            Reporter: Paolo Patierno
>            Priority: Minor
>
> Hi,
> the --key-serializer and --value-serializer options passed to the command line are always
overwritten here :
> {code}
> props.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, "org.apache.kafka.common.serialization.ByteArraySerializer")
> props.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, "org.apache.kafka.common.serialization.ByteArraySerializer")
> {code}
> in the getNewProducerProps() method.
> Thanks,
> Paolo.



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

Mime
View raw message