Created 01-11-2024 02:09 PM
hiveserver2 is working on ubuntu but not on RHEL7(Redhat)
Checked port with lsof -f:10000 and beeline -u jdbc:hive2://localhost:10000
in redhat, It is just giving me
WARN
JNDI lookup class
is not available because this JRE does not support
JNDI.
JNDI string lookups will not be available, continuing configuration.
Ignoring java.lang.ClassNotFoundException: org.apache.logging.log4j.core.lookup.JndiLookup
checked log4j2.properties and it is printing to console. I dont see any other log.
Created 01-11-2024 02:11 PM
@yusufu Welcome to the Cloudera Community!
To help you get the best possible solution, I have tagged our Hive experts @cravani @mszurap who may be able to assist you further.
Please keep us updated on your post, and we hope you find a satisfactory solution to your query.
Regards,
Diana Torres,Created on 01-11-2024 02:37 PM - edited 01-11-2024 02:38 PM
@yusufu If nothing in /var/log/hive, can you check if you have log file inside /tmp/hive or /tmp/hive/hive? This would be helpful to debug the issue further.
Created 01-12-2024 06:27 AM
@cravani I have none of /var/log/hive, /tmp/hive or /tmp/hive/hive
do you think some log files has more info than console
Created 12-28-2024 01:42 AM
I encountered the similar issue. I'm using hive 4.0.1
There are errors that isn't in console logs.
My log location is /tmp/hadoop/hive.log.
If none of these log paths are correct, maybe you can use find / -name 'hive.log' to find it.
Hope this helps
Created 01-03-2025 07:50 AM
Can you tell me the CDH or CDP version you are currently on with this issue?
Created 01-03-2025 08:19 AM
Hello,
Please gather the PID of HiveServer2 and run this command:
lsof -Pn -p <PID> | egrep TCP
It should return something like this:
[root@ccycloud apache]# lsof -Pn -p 426744 | egrep TCP
java 426744 hive 680u IPv6 1426885630 0t0 TCP 127.0.0.1:46404->127.0.0.1:9083 (ESTABLISHED)
java 426744 hive 682u IPv6 1426605725 0t0 TCP 127.0.0.1:46420->127.0.0.1:9083 (ESTABLISHED)
java 426744 hive 683u IPv6 1426958951 0t0 TCP 127.0.0.1:46422->127.0.0.1:9083 (ESTABLISHED)
java 426744 hive 684u IPv6 1427031052 0t0 TCP 127.0.0.1:46426->127.0.0.1:9083 (ESTABLISHED)
java 426744 hive 685u IPv6 1427031053 0t0 TCP 127.0.0.1:46436->127.0.0.1:9083 (ESTABLISHED)
java 426744 hive 686u IPv6 1426956920 0t0 TCP 127.0.0.1:46444->127.0.0.1:9083 (ESTABLISHED)
java 426744 hive 687u IPv6 1426956921 0t0 TCP 127.0.0.1:46452->127.0.0.1:9083 (ESTABLISHED)
java 426744 hive 688u IPv6 1426847703 0t0 TCP 127.0.0.1:46466->127.0.0.1:9083 (ESTABLISHED)
java 426744 hive 692u IPv6 1426847704 0t0 TCP *:10000 (LISTEN)
java 426744 hive 693u IPv6 1427016047 0t0 TCP *:10002 (LISTEN)
java 426744 hive 704u IPv6 1427016054 0t0 TCP 127.0.0.1:46476->127.0.0.1:9083 (ESTABLISHED)
java 426744 hive 705u IPv6 1427037042 0t0 TCP 127.0.0.1:57868->127.0.0.1:9083 (ESTABLISHED)
java 426744 hive 706u IPv6 1427549483 0t0 TCP 127.0.0.1:10000->127.0.0.1:54610 (ESTABLISHED)
Connections to Hive Metastore must be setup first before HS2 starts listening on port 10000
Hope this helps