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


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

    • Unable to establish loopback connection at$ at Method) at<init>( at at at<init>( at at at at Caused by: test1: test1 at at$ ... 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,
    Unknown visitor
    Unknown visitorOnce,