Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

HIVE -K8S / failure to login: javax.security.auth.login.LoginException: java.lang.NullPointerException: invalid null input: name

avatar
New Contributor

Hi all,

I need a help 😉

I am trying to install and launch Apache Hive meta store with PG database  on Kubernetes.
The version of Hive is : apache-hive-4.0.0-bin.
I configured hive-site.xml and all volume needed for Apache Hive.
The init scheme was done succsufly by executing : 
./schematool -dbType postgres -initSchema

Since, when try to 
launch hive, I obtained this error that nput name is null.
 
@Poc-hive-v2-78d588-gf8rv:/opt/apache-hive-bin/bin$ hive
WARNING: log4j.properties is not found. HADOOP_CONF_DIR may be incomplete.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/apache-hive-bin/lib/log4j-slf4j-impl-2.17.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/hadoop/share/hadoop/common/lib/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
Hive Session ID = 43722632-401f-4a28-975c-711f1e569a8c

Logging initialized using configuration in jar:file:/opt/apache-hive-bin/lib/hive-common-3.1.3.jar!/hive-log4j2.properties Async: true
Exception in thread "main" java.lang.RuntimeException: org.apache.hadoop.security.KerberosAuthException: failure to login: javax.security.auth.login.LoginException: java.lang.NullPointerException: invalid null input: name
at com.sun.security.auth.UnixPrincipal.<init>(UnixPrincipal.java:71)
at com.sun.security.auth.module.UnixLoginModule.login(UnixLoginModule.java:133)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:755)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)

Thanks for help
Ps : Kerberos Authentification is disabled on hive-site.xml.

0 REPLIES 0