Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-3050

Space in the value for "host.name" causes "Unresolved address"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.2.1
    • Fix Version/s: 0.9.0.0
    • Component/s: None
    • Labels:

      Description

      In <KAFKA_HOME>/config/server.properties, after updating the host.name to a value with a space after "localhost", received

      [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.<init>(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
      

      I am running kafka_2.9.1-0.8.2.2 on Centos6.5 with Java8

      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)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                nmarkandeya Navin Markandeya
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: