smallyao opened a new pull request, #3378:
URL: https://github.com/apache/ambari/pull/3378
## What changes were proposed in this pull request?
<pre>
2022-10-02 13:25:04,065 - File['/var/lib/ambari-agent/tmp/checkWebUI.py']
{'content': StaticFile('checkWebUI.py'), 'mode': 0775}
2022-10-02 13:25:04,067 - Execute['ambari-python-wrap
/var/lib/ambari-agent/tmp/checkWebUI.py -m bigtop3,bigtop4,bigtop1 -p 8480 -s
False -o PROTOCOL_TLSv1_2'] {'logoutput': True, 'tries': 5, 'user':
'ambari-qa', 'try_sleep': 3}
Cannot access WEB UI on: http://bigtop3:8480
2022-10-02 13:25:04,279 - Retrying after 3 seconds. Reason: Execution of
'ambari-python-wrap /var/lib/ambari-agent/tmp/checkWebUI.py -m
bigtop3,bigtop4,bigtop1 -p 8480 -s False -o PROTOCOL_TLSv1_2' returned 1.
Cannot access WEB UI on: http://bigtop3:8480
Cannot access WEB UI on: http://bigtop3:8480
2022-10-02 13:25:07,462 - Retrying after 3 seconds. Reason: Execution of
'ambari-python-wrap /var/lib/ambari-agent/tmp/checkWebUI.py -m
bigtop3,bigtop4,bigtop1 -p 8480 -s False -o PROTOCOL_TLSv1_2' returned 1.
Cannot access WEB UI on: http://bigtop3:8480
Cannot access WEB UI on: http://bigtop3:8480
2022-10-02 13:25:10,706 - Retrying after 3 seconds. Reason: Execution of
'ambari-python-wrap /var/lib/ambari-agent/tmp/checkWebUI.py -m
bigtop3,bigtop4,bigtop1 -p 8480 -s False -o PROTOCOL_TLSv1_2' returned 1.
Cannot access WEB UI on: http://bigtop3:8480
Cannot access WEB UI on: http://bigtop3:8480
2022-10-02 13:25:13,890 - Retrying after 3 seconds. Reason: Execution of
'ambari-python-wrap /var/lib/ambari-agent/tmp/checkWebUI.py -m
bigtop3,bigtop4,bigtop1 -p 8480 -s False -o PROTOCOL_TLSv1_2' returned 1.
Cannot access WEB UI on: http://bigtop3:8480
Cannot access WEB UI on: http://bigtop3:8480
</pre>
The reason is that http response code is 302 when access to
http://bigtop3:8480/.
And the code in checkWebUI.py at line 81 will see the reponse code 302 as a
failure.
## How was this patch tested?
Tested in local vm cluster, including kerberos authentication
hdfs service check before enableing kerberos authentication

hdfs service check after enabling kerberos authentication

Please review [Ambari Contributing
Guide](https://cwiki.apache.org/confluence/display/AMBARI/How+to+Contribute)
before opening a pull request.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]