Return-Path: X-Original-To: apmail-kafka-dev-archive@www.apache.org Delivered-To: apmail-kafka-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6193318582 for ; Thu, 14 Jan 2016 21:20:41 +0000 (UTC) Received: (qmail 53426 invoked by uid 500); 14 Jan 2016 21:20:40 -0000 Delivered-To: apmail-kafka-dev-archive@kafka.apache.org Received: (qmail 53170 invoked by uid 500); 14 Jan 2016 21:20:40 -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 52784 invoked by uid 99); 14 Jan 2016 21:20:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jan 2016 21:20:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E06002C1F5C for ; Thu, 14 Jan 2016 21:20:39 +0000 (UTC) Date: Thu, 14 Jan 2016 21:20:39 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KAFKA-3050) Space in the value for "host.name" causes "Unresolved address" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KAFKA-3050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15098883#comment-15098883 ] ASF GitHub Bot commented on KAFKA-3050: --------------------------------------- GitHub user Zixxy opened a pull request: https://github.com/apache/kafka/pull/777 KAFKA-3050: Acceptor allows hostnames surrounded by whitespaces You can merge this pull request into a Git repository by running: $ git pull https://github.com/Zixxy/kafka trunk Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/777.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #777 ---- commit 48321d4bb9d0490c3cbb993069b7349013fd42e5 Author: Zixxy Date: 2016-01-14T21:13:27Z KAFKA-3050: Acceptor allows hostnames surrounded by whitespaces ---- > Space in the value for "host.name" causes "Unresolved address" > -------------------------------------------------------------- > > Key: KAFKA-3050 > URL: https://issues.apache.org/jira/browse/KAFKA-3050 > Project: Kafka > Issue Type: Bug > Affects Versions: 0.8.2.1 > Reporter: Navin Markandeya > Assignee: Sylwester > Labels: newbie > > In {{/config/server.properties}}, after updating the {{host.name}} to a value with a space after "localhost", received > {code} > [2015-12-30 11:13:43,014] FATAL Fatal error during KafkaServerStartable startup. Prepare to shutdown (kafka.server.KafkaServerStartable) > kafka.common.KafkaException: Socket server failed to bind to localhost :9092: Unresolved address. > at kafka.network.Acceptor.openServerSocket(SocketServer.scala:260) > at kafka.network.Acceptor.(SocketServer.scala:205) > at kafka.network.SocketServer.startup(SocketServer.scala:86) > at kafka.server.KafkaServer.startup(KafkaServer.scala:99) > at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:29) > at kafka.Kafka$.main(Kafka.scala:46) > at kafka.Kafka.main(Kafka.scala) > Caused by: java.net.SocketException: Unresolved address > at sun.nio.ch.Net.translateToSocketException(Net.java:131) > at sun.nio.ch.Net.translateException(Net.java:157) > at sun.nio.ch.Net.translateException(Net.java:163) > at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:76) > at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:67) > at kafka.network.Acceptor.openServerSocket(SocketServer.scala:256) > ... 6 more > Caused by: java.nio.channels.UnresolvedAddressException > at sun.nio.ch.Net.checkAddress(Net.java:101) > at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:218) > at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) > ... 8 more > {code} > I am running {{kafka_2.9.1-0.8.2.2}} on Centos6.5 with Java8 > {code} > java version "1.8.0_60" > Java(TM) SE Runtime Environment (build 1.8.0_60-b27) > Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)