Created 10-15-2015 07:03 PM
Created 10-15-2015 07:26 PM
The HS2 instances register with ZooKeeper under a namespace. When a HiveServer2 instance comes up, it registers itself with ZooKeeper by adding a znode in Zookeeper. The znode name has the format:
/<hiveserver2_namespace>/serverUri=<host:port>;version=<versionInfo>; sequence=<sequence_number>
To de-register a single HiveServer2, enter
hive --service hiveserver2 --deregister <package ID>
You can find more information about HiverServer2 within Zookeeper on http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_hadoop-ha/content/ha-hs2-service-discover...
Created 10-15-2015 07:12 PM
Have you tried using zkCli.sh to browse the Zookeeper entries? I do not know the path for HS2 but you should be able to poke around and find it. Assuming you can find it, you should be able to delete the entry. I haven't tried this but I think that is how the entry is registered.
Created 10-15-2015 07:24 PM
Here is what I did to solve this.
Doublecheck that
Now for what solved this,
screen-shot-2015-10-15-at-31727-pm.png
See also
hive.zookeeper.session.timeout is set to null in hive-default.xml
Created 10-15-2015 07:26 PM
The HS2 instances register with ZooKeeper under a namespace. When a HiveServer2 instance comes up, it registers itself with ZooKeeper by adding a znode in Zookeeper. The znode name has the format:
/<hiveserver2_namespace>/serverUri=<host:port>;version=<versionInfo>; sequence=<sequence_number>
To de-register a single HiveServer2, enter
hive --service hiveserver2 --deregister <package ID>
You can find more information about HiverServer2 within Zookeeper on http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_hadoop-ha/content/ha-hs2-service-discover...
Created 02-01-2018 07:57 PM
hive --service hiveserver2 --deregister <Package ID>
How do I find the package id for the hiveserver2?
Thanks
Manish
Created 02-01-2018 11:18 PM
Nevermind! Found a method to pull the hiveserver2 out of the zookeeper ensemble by deleting its znode using zookeeper client.
Here's the info from MapR's website.