This message was deleted.
# troubleshooting
s
This message was deleted.
o
Copy code
$ java -version
java version "17.0.7" 2023-04-18 LTS
Java(TM) SE Runtime Environment (build 17.0.7+8-LTS-224)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.7+8-LTS-224, mixed mode, sharing)
also got this:
Copy code
Caused by: 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:296)
        at org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:281)
        at org.apache.hadoop.security.UserGroupInformation.loginUserFromSubject(UserGroupInformation.java:837)
        at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:807)
        at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:680)
        at org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:2978)
        at org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:2968)
        at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2830)
        at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:389)
        at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:181)
        at org.apache.druid.storage.hdfs.HdfsStorageDruidModule.configure(HdfsStorageDruidModule.java:96)
        at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
        at com.google.inject.spi.Elements.getElements(Elements.java:110)
        at com.google.inject.util.Modules$OverrideModule.configure(Modules.java:198)
        at com.google.inject.AbstractModule.configure(AbstractModule.java:62)
        at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
        at com.google.inject.spi.Elements.getElements(Elements.java:110)
        at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:138)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
        ... 9 more
Caused by: java.lang.IllegalAccessException: class org.apache.hadoop.security.authentication.util.KerberosUtil cannot access class sun.security.krb5.Config (in module java.security.jgss) because module java.security.jgss does not export sun.security.krb5 to unnamed module @715fa8c5
a
is this an ARM machine by any chance?
o
nope… its Oracle linux 7.9… but we figured it out: had to add all these java configs:
Copy code
-server
-Xms18g
-Xmx24g
-XX:MaxDirectMemorySize=64g
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=/x/tmp
-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager
-Ddruid.extensions.loadList="[]"
--add-exports=java.base/jdk.internal.ref=ALL-UNNAMED
--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.io=ALL-UNNAMED
--add-opens=java.base/java.nio=ALL-UNNAMED
--add-opens=java.base/jdk.internal.ref=ALL-UNNAMED
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
--add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED
g
in druid 26 these properties are going to be set automatically for java versions that require them
i believe in java 11 they are optional (but you get warnings if not set) and in java 17 they are required
o
yeah… also, in order for my mariadb to work, i had to have both files in extensions:
Copy code
-rw-r--r--. 1 druid druid  19676 May 23 15:16 mysql-metadata-storage-25.0.0.jar
-rw-r--r--. 1 druid druid 641587 May 23 15:16 mariadb-java-client-3.1.4.jar
at least for Java 17 install that i am running now
👍 1