java.net.UnknownHostException

im39: im39: unknown error

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 web432

  • via GitHub by ngrinder520
    ,
  • via GitHub by junoyoon
    ,
  • Stack trace

    • java.net.UnknownHostException: im39: im39: unknown error at java.net.InetAddress.getLocalHost(InetAddress.java:1505)[na:1.8.0_101] at net.grinder.util.NetworkUtils.getLocalHostName(NetworkUtils.java:185)[ngri nder-core-3.4.jar:na]

    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,
    juzijuzi
    3 times, last one
    raj76raj76
    2 times, last one
    nasimknasimk
    2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    10 more bugmates