Failed to start Druid Historicals node because of "Unable to locate Kerberos realm"

Hi, all:
When I trying to start the Druid Historicals which is connected to the HDFS(note: the hdfs has the security env), some of the stacktrace as follows:

2017-02-14T11:11:47,294 INFO [main] com.google.inject.Guice - An exception was caught and reported. Message: KrbException: Generic error (description in e-text) (60) - Unable to locate Kerberos realm

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.(FileSystem.java:2473) ~[?:?]

at org.apache.hadoop.fs.FileSystem$Cache$Key.(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]

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: 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]

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

``

Can anyone seen the similar question before?

I have already handle this situation after I have reset the DNS.

Thanks

在 2017年2月14日星期二 UTC+8下午7:29:53,Jeremy_Lv写道: