echo"HIVE_ZOOKEEPERS environment variable not set and couldn't determine from $hive_site_xml (format is zookeeper1.domain.com:2181,zookeeper2.domain.com:2181,zookeeper3.domain.com:2181)" >&2
#if ! grep -q -e hive.server2.zookeeper.namespace "$hive_site_xml"; then
# echo "Looks like HiveServer2 dynamic discovery is not configured in hive-site.xml, please use beeline.sh adjacent script and set \$HIVESERVER2_HOST in your environment"
# hive.zookeeper.namespace -> hive_zookeeper_namespace_hive is a red herring because it merely contains the db/table hierarchy and not the HS2 HA zk discovery info
HIVESERVER2_ZOOKEEPER_NAMESPACE="$(grep -A1 hive.server2.zookeeper.namespace "$hive_site_xml" 2>/dev/null | grep '<value>'| head -n 1| sed 's/<value>//;s,</value>,,; s/[[:space:]]*//g')"