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.

  • emctl start dbconsole fails
    via by 48160,
  • java.net.UnknownHostException on Solaris
    via by Jitesh Sinha,
  • Get cur_ip in double ip host
    via by 843790,
  • about executing asadmin commmand
    via by 843833,
  • J2EE on win2003 Server
    via by 843833,
    • java.net.UnknownHostException: -a: -a at java.net.InetAddress.getLocalHost(InetAddress.java:1191) at oracle.sysman.emSDK.conf.TargetInstaller.getLocalHost(TargetInstaller.java:4977) at oracle.sysman.emSDK.conf.TargetInstaller.main(TargetInstaller.java:3758)

    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