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 9D5F5200CC2 for ; Wed, 5 Jul 2017 12:53:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9A331162EF1; Wed, 5 Jul 2017 10:53:05 +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 DD71A162EEE for ; Wed, 5 Jul 2017 12:53:04 +0200 (CEST) Received: (qmail 10680 invoked by uid 500); 5 Jul 2017 10:53:03 -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 10487 invoked by uid 99); 5 Jul 2017 10:53:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jul 2017 10:53:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 2968F1B0982 for ; Wed, 5 Jul 2017 10:53:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id jxS7mmIcLx8e for ; Wed, 5 Jul 2017 10:53:02 +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 A9A195F6C6 for ; Wed, 5 Jul 2017 10:53: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 C58F5E07DD for ; Wed, 5 Jul 2017 10:53: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 2B5BD2461C for ; Wed, 5 Jul 2017 10:53:00 +0000 (UTC) Date: Wed, 5 Jul 2017 10:53:00 +0000 (UTC) From: "zhu fangbo (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (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 10:53:05 -0000 [ https://issues.apache.org/jira/browse/KAFKA-5558?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] zhu fangbo resolved KAFKA-5558. ------------------------------- Resolution: Fixed this is not a bug > can not connect to the unsecure port after config SASL/PLAIN > ------------------------------------------------------------ > > Key: KAFKA-5558 > URL: https://issues.apache.org/jira/browse/KAFKA-5558 > Project: Kafka > Issue Type: Bug > 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= with one broker using SASL/PLAIN to authorize client. here are configurati= ons=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 correc= t jass.conf can work well when I connect to the secure port(9094)=EF=BC=8Cb= ut when I use the default security.protocol and connect to unsecure port(90= 93), the producer can not fetch metadata=EF=BC=9A > DEBUG 17:18:10 kafka-producer-network-thread | producer-1 [NetworkClient]= Sending metadata request {topics=3D[test]} to node -1 > WARN 17:18:10 kafka-producer-network-thread | producer-1 [NetworkClient] = Error while fetching metadata with correlation id 0 : {test=3DUNKNOWN_TOPIC= _OR_PARTITION} > DEBUG 17:18:10 kafka-producer-network-thread | producer-1 [NetworkClient]= Sending metadata request {topics=3D[test]} to node 1 > WARN 17:18:10 kafka-producer-network-thread | producer-1 [NetworkClient] = Error while fetching metadata with correlation id 2 : {test=3DUNKNOWN_TOPIC= _OR_PARTITION} > Why the unsecure port can not be connected after config sasl authorizatio= n? -- This message was sent by Atlassian JIRA (v6.4.14#64029)