java.net.UnknownHostException

87.128.123.10.dyn.in-addr.arpa: 87.128.123.10.dyn.in-addr.arpa

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 Stack Overflow by JJD
    ,
  • via Unknown by Unknown author,
  • Stack trace

    • java.net.UnknownHostException: 87.128.123.10.dyn.in-addr.arpa: 87.128.123.10.dyn.in-addr.arpa at java.net.InetAddress.getLocalHost(InetAddress.java:1475)[na:1.7.0_79] at net.sf.ehcache.Cache.<clinit>(Cache.java:217)[ehcache-core-2.5.1.jar:na] at net.sf.ehcache.config.ConfigurationHelper.createCache(ConfigurationHelper.java:303)[ehcache-core-2.5.1.jar:na] at net.sf.ehcache.config.ConfigurationHelper.createDefaultCache(ConfigurationHelper.java:219)[ehcache-core-2.5.1.jar:na] at net.sf.ehcache.CacheManager.configure(CacheManager.java:648)[ehcache-core-2.5.1.jar:na] at net.sf.ehcache.CacheManager.doInit(CacheManager.java:407)[ehcache-core-2.5.1.jar:na] at net.sf.ehcache.CacheManager.init(CacheManager.java:357)[ehcache-core-2.5.1.jar:na] at net.sf.ehcache.CacheManager.<init>(CacheManager.java:242)[ehcache-core-2.5.1.jar:na] at org.sonatype.sisu.ehcache.CacheManagerComponentImpl.createCacheManager(CacheManagerComponentImpl.java:112)[nexus-ehcache-2.13.0-01.jar:2.13.0-01] at org.sonatype.sisu.ehcache.CacheManagerComponentImpl.<init>(CacheManagerComponentImpl.java:57)[nexus-ehcache-2.13.0-01.jar:2.13.0-01] at org.sonatype.sisu.ehcache.CacheManagerComponentImpl.<init>(CacheManagerComponentImpl.java:52)[nexus-ehcache-2.13.0-01.jar:2.13.0-01] at org.sonatype.sisu.ehcache.CacheManagerComponentImpl$$FastClassByGuice$$6e60c0a8.newInstance(<generated>)[sisu-guice-3.1.10.jar:2.13.0-01]

    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

    mortalman7mortalman7
    Once,
    raj76raj76
    2 times, last one
    nasimknasimk
    2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    9 more bugmates