Support Questions
Find answers, ask questions, and share your expertise

Hiveserver2 is not starting but metastore is running.

HDP cluster has 3 nodes. One has metastore instance and other two have hiveserver2 instances. The cluster was working fine earlier. The metastore is running but It is giving error while starting hiveserver2

caught exception: ZooKeeper node /hiveserver2 is not ready yet. Sleeping for 10 sec(s) hiveserver2-stderr.txt

when I access hive from terminal it starts beeline with an error for hiveserver2

[root@hmaster ~]# hive
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/hdp/3.0.1.0-187/hive/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/3.0.1.0-187/hadoop/lib/slf4j-log4j12-1.7.25.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]
Connecting to jdbc:hive2://hdata1.nic.in:2181,hmaster.nic.in:2181,hdata2.nic.in:2181/default;password=hive;serviceDiscoveryMode=zooKeeper;user=hive;zooKeeperNamespace=hiveserver2
Error: org.apache.hive.jdbc.ZooKeeperHiveClientException: Unable to read HiveServer2 configs from ZooKeeper (state=,code=0)
Beeline version 3.1.0.3.0.1.0-187 by Apache Hive
beeline>


The zookeeper node /hiveserver2 is empty I have also tried removing the zookeeper node /hiveserver2 as suggested in other threads but it does not help.

@Josh Elser please help on this

Anyone's help will be appreciated...

4 REPLIES 4

Cloudera Employee

@Mohit Kaushik is there sufficient RAM and storage space?

In the hiveserver2.log it gives the following error repeatedly.

2018-11-26T11:13:30,160 ERROR [json-metric-reporter]: metrics2.JsonFileMetricsReporter (:()) - Unable to rename temp file /tmp/hmetrics6708564061371615677json to /tmp/report.json

@Richard Dobson Yes, It has enough free space, no jobs running. RAM is 16 GB on each server .Thanks for the reply...

New Contributor

same as mine.... from the stderr.txt

"Ranger Hive plugin is not enabled"

mine fix by ... Install Ranger