From 685caaad92ed14bd4bf4583a989b7aea5b1658f2 Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Thu, 16 Jan 2020 21:06:47 +0000 Subject: [PATCH] updated beeline_zk.sh --- beeline_zk.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beeline_zk.sh b/beeline_zk.sh index 69943e87..21235736 100755 --- a/beeline_zk.sh +++ b/beeline_zk.sh @@ -20,14 +20,14 @@ set -euo pipefail [ -n "${DEBUG:-}" ] && set -x -hive_site_xml=/etc/hive/conf/hive-site.xml +hive_site_xml="${HIVE_SITE_XML:-/etc/hive/conf/hive-site.xml}" set +o pipefail # xq -r < hive-site.xml '.configuration.property[] | select(.name == "hive.zookeeper.quorum") | .value' if [ -z "${ZOOKEEPERS:-}" ]; then ZOOKEEPERS="$(grep -A1 hive.zookeeper.quorum "$hive_site_xml" 2>/dev/null | grep '' | sed 's///;s,,,;s/[[:space:]]*//g')" if [ -z "${ZOOKEEPERS:-}" ]; then - echo "ZOOKEEPERS environment variable not set (format is zookeeper1.domain.com:2181,zookeeper2.domain.com:2181,zookeeper3.domain.com:2181)" + echo "ZOOKEEPERS environment variable not set (format is zookeeper1.domain.com:2181,zookeeper2.domain.com:2181,zookeeper3.domain.com:2181)" >&2 exit 3 fi fi