java.net.UnknownHostException: CentOSNode.localdomain: CentOSNode.localdomain: Name or service not known

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert 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

Solutions on the web

via Jenkins JIRA by Luis Cardozo, 1 year ago
CentOSNode.localdomain: CentOSNode.localdomain: Name or service not known
via Jenkins JIRA by Luis Cardozo, 1 year ago
CentOSNode.localdomain: CentOSNode.localdomain: Name or service not known
via Stack Overflow by oscar
, 2 months ago
fooHostName: fooHostName: Name or service not known
via GitHub by litaonet
, 7 months ago
localhost.localdomain: localhost.localdomain: Name or service not known
via Google Groups by Bruno Steven, 1 year ago
new-host-11: new-host-11: Name or service not known
via prelert.com by Unknown author, 1 year ago
Davids-Macbook-Pro: Davids-Macbook-Pro: nodename nor servname provided, or not known
java.net.UnknownHostException: CentOSNode.localdomain: CentOSNode.localdomain: Name or service not known
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source)
at java.net.InetAddress.getAddressesFromNameService(Unknown Source)
at org.codehaus.xfire.addressing.RandomGUID.(RandomGUID.java:115)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.codehaus.xfire.client.CorrelatorHandler.class$(CorrelatorHandler.java:14)
at org.codehaus.xfire.client.CorrelatorHandler.(CorrelatorHandler.java:24)
at org.codehaus.xfire.client.Client.(Client.java:84)
at org.codehaus.xfire.client.Client.(Client.java:180)
at org.codehaus.xfire.client.Client.(Client.java:125)
at com.soasta.common.xfire.ClientFactory.a(ClientFactory.java:139)
at com.soasta.common.repository.webservice.RepositoryServiceClientFactory.getRepositoryServiceClient(RepositoryServiceClientFactory.java:51)
at com.soasta.common.repository.webservice.RepositoryServiceClientFactory.getRepositoryServiceClient(RepositoryServiceClientFactory.java:41)
at com.soasta.tools.scommand.commands.a.n(a.java:415)
at com.soasta.tools.scommand.commands.c.c(c.java:119)
at com.soasta.tools.scommand.a.a(a.java:124)
at com.soasta.tools.scommand.Main.main(Main.java:25)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
5 times, 3 months ago
76 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.