java.io.IOException

Unable to establish loopback connection

Samebug tips1

When kafka creates new consumers, it simply concatenate the name of your VM to generate the consumer id. So, your VM resolves localhost as the name of your VM, not whatever you had set. To solve, add kafka(or the name of VM) plus address to /etc/hosts


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web238

  • via Unknown by 843798,
  • via Stack Overflow by noplay
    ,
  • Stack trace

    • java.io.IOException: Unable to establish loopback connection at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:104) at java.security.AccessController.doPrivileged(Native Method) at sun.nio.ch.PipeImpl.<init>(PipeImpl.java:120) at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:27) at java.nio.channels.Pipe.open(Pipe.java:133) at sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:101) at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:26) at java.nio.channels.Selector.open(Selector.java:209) at com.inquira.infra.trnsp.socket.SocketServer.run(SocketServer.java:156) at java.lang.Thread.run(Thread.java:534) Caused by: java.net.UnknownHostException: test1: test1 at java.net.InetAddress.getLocalHost(InetAddress.java:1191) at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:72) ... 9 more

    Write tip

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

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    mortalman7mortalman7
    Once,
    Unknown visitor
    Unknown visitorOnce,