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/!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
Connecting to jdbc:hive2://,,;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 by Apache Hive

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


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