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/188.8.131.52-187/hive/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/184.108.40.206-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 220.127.116.11.0.1.0-187 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...
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
same as mine.... from the stderr.txt
"Ranger Hive plugin is not enabled"
mine fix by ... Install Ranger