java.net.UnknownHostException

trouter: trouter: Nom ou service inconnu (== unknown name or service)

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 web840

  • trouter: trouter: Nom ou service inconnu (== unknown name or service)
  • via free.fr by Unknown author, 7 months ago
    data.fm: Nom ou service inconnu
  • via JIRA by Florent Biville, 1 year ago
    160.RH6.5: Nom ou service inconnu
  • Stack trace

    • java.net.UnknownHostException: trouter: trouter: Nom ou service inconnu (== unknown name or service) at java.net.InetAddress.getLocalHost(InetAddress.java:1475) at com.comcast.cdn.traffic_control.traffic_router.core.dns.ZoneManager.fillZones(ZoneManager.java:365) at com.comcast.cdn.traffic_control.traffic_router.core.dns.ZoneManager.fillZones(ZoneManager.java:360) at com.comcast.cdn.traffic_control.traffic_router.core.dns.ZoneManager.generateZones(ZoneManager.java:348) at com.comcast.cdn.traffic_control.traffic_router.core.dns.ZoneManager.initZoneCache(ZoneManager.java:174) at com.comcast.cdn.traffic_control.traffic_router.core.dns.ZoneManager.<init>(ZoneManager.java:107) at com.comcast.cdn.traffic_control.traffic_router.core.router.TrafficRouter.<init>(TrafficRouter.java:87) at com.comcast.cdn.traffic_control.traffic_router.core.router.TrafficRouterManager.setCacheRegister(TrafficRouterManager.java:82) at com.comcast.cdn.traffic_control.traffic_router.core.config.ConfigHandler.processConfig(ConfigHandler.java:122) at com.comcast.cdn.traffic_control.traffic_router.core.monitor.TrafficMonitorWatcher$2.update(TrafficMonitorWatcher.java:115) at com.comcast.cdn.traffic_control.traffic_router.core.util.PeriodicResourceUpdater.updateDatabase(PeriodicResourceUpdater.java:188)

    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

    Once, 1 year ago
    5 times, 4 days ago
    2 times, 1 month ago
    2 times, 7 months ago
    Unknown user
    Once, 10 months ago
    10 more bugmates