java.lang.IllegalArgumentException: Can't get Kerberos realm


Solutions on the web4

Solution icon of googlegroups
Can't get Kerberos realm

Solution icon of googlegroups
Can't get Kerberos realm

Solution icon of stackoverflow
Can't get Kerberos realm

Solution icon of stackoverflow
Can't get Kerberos realm

Stack trace

java.lang.IllegalArgumentException: Can't get Kerberos realm
	at org.apache.hadoop.security.HadoopKerberosName.setConfiguration(HadoopKerberosName.java:65)[?:?]
	at org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:247)[?:?]
	at org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:232)[?:?]
	at org.apache.hadoop.security.UserGroupInformation.loginUserFromSubject(UserGroupInformation.java:718)[?:?]
	at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:703)[?:?]
	at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:605)[?:?]
	at org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:2473)[?:?]
	at org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:2465)[?:?]
	at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2331)[?:?]
	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:369)[?:?]
	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:168)[?:?]
	at io.druid.storage.hdfs.HdfsStorageDruidModule.configure(HdfsStorageDruidModule.java:110)[?:?]
	at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)[guice-4.1.0.jar:?]
	at com.google.inject.spi.Elements.getElements(Elements.java:110)[guice-4.1.0.jar:?]
	at com.google.inject.util.Modules$OverrideModule.configure(Modules.java:198)[guice-4.1.0.jar:?]
	at com.google.inject.AbstractModule.configure(AbstractModule.java:62)[guice-4.1.0.jar:?]
	at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)[guice-4.1.0.jar:?]
	at com.google.inject.spi.Elements.getElements(Elements.java:110)[guice-4.1.0.jar:?]
	at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:138)[guice-4.1.0.jar:?]
	at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)[guice-4.1.0.jar:?]
	at com.google.inject.Guice.createInjector(Guice.java:99)[guice-4.1.0.jar:?]
	at com.google.inject.Guice.createInjector(Guice.java:73)[guice-4.1.0.jar:?]
	at com.google.inject.Guice.createInjector(Guice.java:62)[guice-4.1.0.jar:?]
	at io.druid.initialization.Initialization.makeInjectorWithModules(Initialization.java:366)[druid-server-0.9.2.jar:0.9.2]
	at io.druid.cli.GuiceRunnable.makeInjector(GuiceRunnable.java:62)[druid-services-0.9.2.jar:0.9.2]
	at io.druid.cli.ServerRunnable.run(ServerRunnable.java:39)[druid-services-0.9.2.jar:0.9.2]
	at io.druid.cli.Main.main(Main.java:106)[druid-services-0.9.2.jar:0.9.2]
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.7.0_79]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[?:1.7.0_79]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.7.0_79]
	at java.lang.reflect.Method.invoke(Method.java:606)[?:1.7.0_79]
	at org.apache.hadoop.security.authentication.util.KerberosUtil.getDefaultRealm(KerberosUtil.java:75)[?:?]
	at org.apache.hadoop.security.HadoopKerberosName.setConfiguration(HadoopKerberosName.java:63)[?:?]
	... 26 more
Caused by: sun.security.krb5.KrbException: Cannot locate default realm
	at sun.security.krb5.Config.getDefaultRealm(Config.java:1181)[?:1.7.0_79]
	... 32 more
Caused by: sun.security.krb5.KrbException: Generic error (description in 
e-text) (60) - Unable to locate Kerberos realm
	at sun.security.krb5.Config.getRealmFromDNS(Config.java:1277)[?:1.7.0_79]
	at sun.security.krb5.Config.getDefaultRealm(Config.java:1162)[?:1.7.0_79]
	... 32 more

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

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.