Support Questions

Find answers, ask questions, and share your expertise

Hiveserver2 started but not listening 10000

avatar
New Contributor

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. 

6 REPLIES 6

avatar
Community Manager

@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,
Community Moderator


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

avatar
Super Collaborator

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

avatar
New Contributor

@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 

avatar
New Contributor

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

avatar
Expert Contributor

@yusufu 

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

avatar
Expert Contributor

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