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 3A0C5200CC2 for ; Wed, 5 Jul 2017 11:40:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 388A1162CE7; Wed, 5 Jul 2017 09:40:06 +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 7D734162CE4 for ; Wed, 5 Jul 2017 11:40:05 +0200 (CEST) Received: (qmail 86064 invoked by uid 500); 5 Jul 2017 09:40:03 -0000 Mailing-List: contact jira-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@kafka.apache.org Delivered-To: mailing list jira@kafka.apache.org Received: (qmail 85959 invoked by uid 99); 5 Jul 2017 09:40:03 -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, 05 Jul 2017 09:40:03 +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 0C44AD2015 for ; Wed, 5 Jul 2017 09:40:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.01 X-Spam-Level: X-Spam-Status: No, score=-100.01 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001, 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 T1vHTGbxjaGV for ; Wed, 5 Jul 2017 09:40:02 +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 E1B1C5FD84 for ; Wed, 5 Jul 2017 09:40:01 +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 21A84E0D9E for ; Wed, 5 Jul 2017 09:40:01 +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 49C8224629 for ; Wed, 5 Jul 2017 09:40:00 +0000 (UTC) Date: Wed, 5 Jul 2017 09:40:00 +0000 (UTC) From: "zhu fangbo (JIRA)" To: jira@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (KAFKA-5558) can not connect to the unsecure port after config SASL/PLAIN MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 05 Jul 2017 09:40:06 -0000 zhu fangbo created KAFKA-5558: --------------------------------- Summary: can not connect to the unsecure port after config SAS= L/PLAIN Key: KAFKA-5558 URL: https://issues.apache.org/jira/browse/KAFKA-5558 Project: Kafka Issue Type: New Feature Components: clients Affects Versions: 0.10.1.1 Reporter: zhu fangbo Dear All,=20 I followed modifying sasl mechanism in a running cluster to set a cluster w= ith one broker using SASL/PLAIN to authorize client. here are configuration= s=EF=BC=9A server config server.properties=EF=BC=9A listeners=3DPLAINTEXT://:9093,SASL_PLAINTEXT://:9094 security.inter.broker.protocol=3DSASL_PLAINTEXT sasl.mechanism.inter.broker.protocol=3DPLAIN sasl.enabled.mechanisms=3DPLAIN authorizer.class.name =3D kafka.security.auth.SimpleAclAuthorizer super.users=3DUser:admin kafka_server_jaas.conf=EF=BC=9A KafkaServer { org.apache.kafka.common.security.plain.PlainLoginModule required username=3D"admin" password=3D"admin" user_admin=3D"admin" user_alice=3D"alice"; }; My producer configured with security.protocol=3DSASL_PLAINTEXT and correct = jass.conf can work well when I connect to the secure port(9094)=EF=BC=8Cbut= when I use the default security.protocol and connect to unsecure port(9093= ), the producer can not fetch metadata=EF=BC=9A DEBUG 17:18:10 kafka-producer-network-thread | producer-1 [NetworkClient] S= ending metadata request {topics=3D[test]} to node -1 WARN 17:18:10 kafka-producer-network-thread | producer-1 [NetworkClient] Er= ror while fetching metadata with correlation id 0 : {test=3DUNKNOWN_TOPIC_O= R_PARTITION} DEBUG 17:18:10 kafka-producer-network-thread | producer-1 [NetworkClient] S= ending metadata request {topics=3D[test]} to node 1 WARN 17:18:10 kafka-producer-network-thread | producer-1 [NetworkClient] Er= ror while fetching metadata with correlation id 2 : {test=3DUNKNOWN_TOPIC_O= R_PARTITION} Why the unsecure port can not be connected after config sasl authorization? -- This message was sent by Atlassian JIRA (v6.4.14#64029)