Skip to main content
yusufu
Silver ⭐️
Jan 11, 2024 10:09 PM UTC
Question

Hiveserver2 started but not listening 10000

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. 

9 replies

DianaTorres
Community Manager
Community Manager
Jan 11, 2024 10:11 PM UTC

@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.

Translate
Regards, Diana Torres, Senior Community Moderator
cravani
Gold ⭐️
Gold ⭐️
Jan 11, 2024 10:37 PM UTC

@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.

Translate
yusufu
yusufuAuthor
Silver ⭐️
Jan 12, 2024 2:27 PM UTC

@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 

Translate
insightpearl
Silver ⭐️
Dec 28, 2024 9:42 AM UTC

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

Translate
qris
Silver ⭐️
Aug 8, 2025 10:20 AM UTC

I found my logs in /tmp/chris/hive.log, so I suspect it would be /tmp/<username>/hive.log for whatever user hiveserver2 runs as.

Translate
MGreen
Gold ⭐️
Gold ⭐️
Jan 3, 2025 3:50 PM UTC

@yusufu 

Can you tell me the CDH or CDP version you are currently on with this issue?

Translate
JoseManuel
Gold ⭐️
Gold ⭐️
Jan 3, 2025 4:19 PM UTC

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

Translate
yagoaparecidoti
Gold ⭐️
Jan 8, 2025 6:34 PM UTC

hi @yusufu ,

are you using the same version of Java that runs on Ubuntu on RHEL?

Translate