java.net.UnknownHostException: ip-10-203-208-252: ip-10-203-208-252: 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 Google Groups by saianirudh kantabathina, 10 months ago
via mathworks.com by Unknown author, 2 years ago
via Stack Overflow by noplay
, 2 years ago
kafka: kafka: Name or service not known
via Stack Overflow by Arasu
, 2 years ago
sys3: sys3: Name or service not known
via GitHub by sunshineo
, 9 months ago
mariadb-connect: mariadb-connect: Name or service not known
java.net.UnknownHostException: ip-10-203-208-252: ip-10-203-208-252: Name or service not known*
at java.net.InetAddress.getLocalHost(InetAddress.java:1496)
at com.snowplowanalytics.snowplow.enrich.kinesis.sources.KinesisSource.run(KinesisSource.scala:81)

Users with the same issue

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

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