java.net.UnknownHostException

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

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

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

  • java.net.UnknownHostException: apollo
    via by 3004,
  • UnknownHostException kafka
    via Stack Overflow by noplay
    ,
    • java.net.UnknownHostException: apollo at java.net.InetAddress.getAllByName0(InetAddress.java:566) at java.net.InetAddress.getAllByName0(InetAddress.java:535) at java.net.InetAddress.getAllByName(InetAddress.java:528) at java.net.InetAddress.getLocalHost(InetAddress.java:718) at weblogic.rjvm.JVMID.setLocalID(JVMID.java:120) at weblogic.t3.srvr.T3Srvr.setJVMID(T3Srvr.java:343) at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:383) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:212) at weblogic.Server.main(Server.java:35)

    Users with the same issue

    raj76raj76
    2 times, last one,
    nasimknasimk
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    47 more bugmates