org.apache.kafka.connect.errors.ConnectException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Change the connection port and ip adress. If you're trying to connect to your server from your own computer, check if you haven't already connected to the server in another instance.


rafael
tip

Try changing the port in core-site.xml from 9000 to 9001 as it seems port 9000 doesn't work.

tip

It might be that there's another process connecting to the same port you're trying to use, try to kill it or change the connection port.


rafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Problem while storing to HDFS
    via by Unknown author,
  • Confluent Connect with mysql database
    via by Conal Nicholls,
  • Running multiple connectors on one kafka host
    via by Bart Van Bos,
  • GitHub comment 179#269924755
    via GitHub by MichaelBlume
    ,
  • Apache Ignite Users - Couchbase as persistent store
    via by Unknown author,
  • 请问这是什么问题?
    via GitHub by beckno9
    ,
    • org.apache.kafka.connect.errors.ConnectException: Unable to start REST server at org.apache.kafka.connect.runtime.rest.RestServer.start(RestServer.java:147) at org.apache.kafka.connect.runtime.Connect.start(Connect.java:56) at org.apache.kafka.connect.cli.ConnectStandalone.main(ConnectStandalone.java:82) Caused by: java.net.BindException: Address already in use at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:433) at sun.nio.ch.Net.bind(Net.java:425) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:321) at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80) at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.server.Server.doStart(Server.java:366) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.apache.kafka.connect.runtime.rest.RestServer.start(RestServer.java:145) ... 2 more

    Users with the same issue

    davidvanlaatum
    3 times, last one,
    jstrayer
    1 times, last one,
    Dunmer
    36 times, last one,
    Handemelindo
    6 times, last one,
    Unknown visitor1 times, last one,
    136 more bugmates