java.net.UnknownHostException

Web: Web: 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

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web355

  • Web: Web: unknown error
  • via Google Groups by Mark Donohoe, 1 year ago
    http://web-proxy.fc.hp.com
  • a9c6d0d6a85e: unknown error
  • Stack trace

    • java.net.UnknownHostException: Web: Web: unknown error at java.net.InetAddress.getLocalHost(InetAddress.java:1505) at org.apache.hadoop.net.DNS.resolveLocalHostIPAddress(DNS.java:287) at org.apache.hadoop.net.DNS.<clinit>(DNS.java:58) at org.apache.hadoop.hdfs.server.namenode.NNStorage.newBlockPoolID(NNStorage.java:982) at org.apache.hadoop.hdfs.server.namenode.NNStorage.newNamespaceInfo(NNStorage.java:591) at org.apache.hadoop.hdfs.server.namenode.FSImage.format(FSImage.java:157) at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:992) at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1434) at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1559) Caused by: java.net.UnknownHostException: Web: unknown error at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928) at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323) at java.net.InetAddress.getLocalHost(InetAddress.java:1500) ... 8 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 user
    Once, 11 months ago
    5 times, 2 days ago
    2 times, 1 month ago
    2 times, 7 months ago
    Unknown user
    Once, 10 months ago
    15 more bugmates