This is an automated email from the ASF dual-hosted git repository.
wuzhiguo pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new 9395539d1d AMBARI-25269: HiveServer2 Interactive Process alert
triggered in HA setup (#3401)
9395539d1d is described below
commit 9395539d1df83381f227bbf31562985bc546ad39
Author: Zhiguo Wu <[email protected]>
AuthorDate: Fri Oct 14 14:28:00 2022 +0800
AMBARI-25269: HiveServer2 Interactive Process alert triggered in HA setup
(#3401)
---
.../python/resource_management/libraries/functions/hive_check.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/ambari-common/src/main/python/resource_management/libraries/functions/hive_check.py
b/ambari-common/src/main/python/resource_management/libraries/functions/hive_check.py
index 39df3b5fa4..9c61cab9eb 100644
---
a/ambari-common/src/main/python/resource_management/libraries/functions/hive_check.py
+++
b/ambari-common/src/main/python/resource_management/libraries/functions/hive_check.py
@@ -74,8 +74,9 @@ def check_thrift_port_sasl(address, port, hive_auth="NOSASL",
key=None, kinitcmd
# -n the user to connect as (ignored when using the hive principal in the
URL, can be different from the user running the beeline command)
# -e ';' executes a SQL commmand of NOOP
- cmd = "beeline -n %s -u '%s' %s -e ';' 2>&1 | awk '{print}' | grep -i -e
'Connected to:' -e 'Transaction isolation:'" % \
- (format(hive_user), format(";".join(beeline_url)),
format(credential_str))
+ cmd = ("beeline -n %s -u '%s' %s -e ';' 2>&1 | awk '{print}' | grep -i " + \
+ "-e 'Connected to:' -e 'Transaction isolation:' -e 'inactive HS2
instance; use service discovery'") % \
+ (format(hive_user), format(";".join(beeline_url)),
format(credential_str))
Execute(cmd,
user=smokeuser,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]