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.

  • UnknownHostException when running in exec
    via by Douglas Kent,
  • Get cur_ip in double ip host
    via by 843790,
  • about executing asadmin commmand
    via by 843833,
  • emctl start dbconsole fails
    via by 48160,
  • J2EE on win2003 Server
    via by 843833,
  • JMS service startup failed
    via by 807581,
    • java.net.UnknownHostException: BW5524: BW5524 at java.net.InetAddress.getLocalHost(InetAddress.java:1191) at org.apache.axis.utils.SessionUtils.getEntropy(SessionUtils.java:214) at org.apache.axis.utils.SessionUtils.getRandom(SessionUtils.java:191)

    Users with the same issue

    raj76
    2 times, last one,
    nasimk
    2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    9 more bugmates