java.net.UnknownHostException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
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

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • java.net.UnknownHostException: linux-suse.site: linux-suse.site: Name or service not known at java.net.InetAddress.getLocalHost(InetAddress.java:1473) at org.eclipse.rse.core.RSECorePlugin.getLocalMachineName(RSECorePlugin.java:265) at org.eclipse.rse.core.RSEPreferencesManager.getDefaultPrivateSystemProfileName(RSEPreferencesManager.java:358) at org.eclipse.rse.core.RSEPreferencesManager.initDefaults(RSEPreferencesManager.java:337) at org.eclipse.rse.internal.core.RSEPreferenceInitializer.initializeDefaultPreferences(RSEPreferenceInitializer.java:23) at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper$1.run(PreferenceServiceRegistryHelper.java:300) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper.runInitializer(PreferenceServiceRegistryHelper.java:303) at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper.applyRuntimeDefaults(PreferenceServiceRegistryHelper.java:131) at org.eclipse.core.internal.preferences.PreferencesService.applyRuntimeDefaults(PreferencesService.java:368) at org.eclipse.core.internal.preferences.DefaultPreferences.applyRuntimeDefaults(DefaultPreferences.java:221) at org.eclipse.core.internal.preferences.DefaultPreferences.load(DefaultPreferences.java:274) at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:409) at org.eclipse.core.internal.preferences.EclipsePreferences.internalNode(EclipsePreferences.java:670) at org.eclipse.core.internal.preferences.DefaultPreferences.node(DefaultPreferences.java:147) at org.eclipse.core.internal.preferences.legacy.PreferenceForwarder.getDefaultPreferences(PreferenceForwarder.java:131) at org.eclipse.core.internal.preferences.legacy.PreferenceForwarder.getInt(PreferenceForwarder.java:485) at org.eclipse.rse.logging.Logger.initialize(Logger.java:249) at org.eclipse.rse.logging.Logger.<init>(Logger.java:135) at org.eclipse.rse.logging.LoggerFactory.getLogger(LoggerFactory.java:45) at org.eclipse.rse.core.RSECorePlugin.getLogger(RSECorePlugin.java:392) at org.eclipse.rse.internal.core.RSEInitJob.<init>(RSEInitJob.java:133) at org.eclipse.rse.internal.core.RSEInitJob.<clinit>(RSEInitJob.java:65) at org.eclipse.rse.core.RSECorePlugin.waitForInitCompletion(RSECorePlugin.java:142) at org.eclipse.rse.internal.ui.RSEUIInitJob.run(RSEUIInitJob.java:32) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.net.UnknownHostException: linux-suse.site: A név vagy a szolgáltatás nem ismert at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901) at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293) at java.net.InetAddress.getLocalHost(InetAddress.java:1469) ... 25 more

Users with the same issue

Unknown visitor1 times, last one,
Unknown visitor1 times, last one,
raj76
2 times, last one,
nasimk
2 times, last one,
Unknown visitor1 times, last one,
60 more bugmates