This is an automated email from the ASF dual-hosted git repository.

jialiang 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 85f0de8784 AMBARI-26276: fix hdfs web service check (#3925)
85f0de8784 is described below

commit 85f0de87841b574d54532c9a626c19480ef0b8cd
Author: tongxiaojun <[email protected]>
AuthorDate: Tue Jan 14 15:37:13 2025 +0800

    AMBARI-26276: fix hdfs web service check (#3925)
---
 .../stacks/BIGTOP/3.2.0/services/HDFS/package/files/checkWebUI.py       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/files/checkWebUI.py
 
b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/files/checkWebUI.py
index 1317a51f66..adca7b91a5 100644
--- 
a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/files/checkWebUI.py
+++ 
b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HDFS/package/files/checkWebUI.py
@@ -106,7 +106,7 @@ def main():
   for host in hosts:
     httpCode = make_connection(host, port, https.lower() == "true", protocol)
 
-    if httpCode != 200:
+    if httpCode != 200 and httpCode != 302:
       print(
         "Cannot access WEB UI on: http://"; + host + ":" + port
         if not https.lower() == "true"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to