Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5E32F200C8F for ; Fri, 9 Jun 2017 17:47:28 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5CF3E160BC8; Fri, 9 Jun 2017 15:47:28 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A16FF160B9C for ; Fri, 9 Jun 2017 17:47:27 +0200 (CEST) Received: (qmail 77284 invoked by uid 500); 9 Jun 2017 15:47:26 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 77273 invoked by uid 99); 9 Jun 2017 15:47:26 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jun 2017 15:47:26 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 23049C67A8 for ; Fri, 9 Jun 2017 15:47:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id e9FglycgOzYb for ; Fri, 9 Jun 2017 15:47:25 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id D9A765FCD7 for ; Fri, 9 Jun 2017 15:47:19 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 1B493E0D63 for ; Fri, 9 Jun 2017 15:47:19 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 56E2C21E11 for ; Fri, 9 Jun 2017 15:47:18 +0000 (UTC) Date: Fri, 9 Jun 2017 15:47:18 +0000 (UTC) From: "Paolo Patierno (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KAFKA-5420) Console producer --key-serializer and --value-serializer are always overwritten by ByteArraySerializer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 09 Jun 2017 15:47:28 -0000 [ 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)