From dev-return-96616-archive-asf-public=cust-asf.ponee.io@kafka.apache.org Wed Aug 1 14:25:03 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 52DB6180634 for ; Wed, 1 Aug 2018 14:25:03 +0200 (CEST) Received: (qmail 97955 invoked by uid 500); 1 Aug 2018 12:25:02 -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 97941 invoked by uid 99); 1 Aug 2018 12:25:02 -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; Wed, 01 Aug 2018 12:25:02 +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 9BDD4C8400 for ; Wed, 1 Aug 2018 12:25:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id X7K4bxoOhM5f for ; Wed, 1 Aug 2018 12:25:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id B4D4B5F1BD for ; Wed, 1 Aug 2018 12:25:00 +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 469E8E023C for ; Wed, 1 Aug 2018 12:25:00 +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 0C1FB2775E for ; Wed, 1 Aug 2018 12:25:00 +0000 (UTC) Date: Wed, 1 Aug 2018 12:25:00 +0000 (UTC) From: "Alexandre GRIFFAUT (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (KAFKA-7226) kafka-console-consumer.sh doesn't use security.protocol provided in config file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Alexandre GRIFFAUT created KAFKA-7226: ----------------------------------------- Summary: kafka-console-consumer.sh doesn't use security.protoc= ol provided in config file Key: KAFKA-7226 URL: https://issues.apache.org/jira/browse/KAFKA-7226 Project: Kafka Issue Type: Bug Components: producer=20 Affects Versions: 1.0.0 Reporter: Alexandre GRIFFAUT It is confusing that kafka-console-consumer.sh doesn't read security.protoc= ol when provided in config file with --producer.config, wheras kafka-consol= e-consumer.sh does... =C2=A0 With debug activated: $ /usr/hdp/2.6.5.0-292/kafka/bin/kafka-console-producer.sh --broker-list $(= hostname):6668 --topic test --producer.config /etc/kafka/ssl/kafka.client.p= roperties [2018-08-01 14:17:18,505] INFO ProducerConfig values: ... =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 security.protocol =3D PLAINTEXT ... > abc .. java.io.EOFException =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.kafka.common.netwo= rk.NetworkReceive.readFromReadableChannel(NetworkReceive.java:147) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.kafka.common.netwo= rk.NetworkReceive.readFrom(NetworkReceive.java:93) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.kafka.common.netwo= rk.KafkaChannel.receive(KafkaChannel.java:235) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.kafka.common.netwo= rk.KafkaChannel.read(KafkaChannel.java:196) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.kafka.common.netwo= rk.Selector.attemptRead(Selector.java:538) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.kafka.common.netwo= rk.Selector.pollSelectionKeys(Selector.java:482) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.kafka.common.netwo= rk.Selector.poll(Selector.java:412) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.kafka.clients.Netw= orkClient.poll(NetworkClient.java:460) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.kafka.clients.prod= ucer.internals.Sender.run(Sender.java:239) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.kafka.clients.prod= ucer.internals.Sender.run(Sender.java:163) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at java.lang.Thread.run(Thread.j= ava:745) ... =C2=A0 The only way produce with SSL, is to use --security-protocol SSL kafka-console-consumer.sh correctly read security.protocol from config file -- This message was sent by Atlassian JIRA (v7.6.3#76005)