cloudera / hue

Open source SQL Query Assistant service for Databases/Warehouses
https://cloudera.com
Apache License 2.0
1.16k stars 364 forks source link

<jb> The task log reports SSL: CERTIFICATE_VERIFY_FAILED error #3844

Open rayliu0 opened 2 weeks ago

rayliu0 commented 2 weeks ago

Is there an existing issue for this?

Description

The stdout and stderr logs of the Hive task report the following error: Failed to retrieve log: HTTPSConnectionPool(host='1a.5bcdewww.qq.comopqrtuvwxy-z', port=5009): Max retries exceeded with url: /node/containerlogs/container_e04_1726212362258_0249_01_000001/hadoop/stdout?start=-1000000&doAs=hadoop (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)'),))

Steps To Reproduce

  1. yarn url https:// prefix
  2. kerberos env: security_enabled=true
  3. No CA is used: ssl_cert_ca_verify=false

Logs

Failed to retrieve log: HTTPSConnectionPool(host='1a.5bcdewww.qq.comopqrtuvwxy-z', port=5009): Max retries exceeded with url: /node/containerlogs/container_e04_1726212362258_0249_01_000001/hadoop/stdout?start=-1000000&doAs=hadoop (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)'),))

Hue version

4.11.0

rayliu0 commented 2 weeks ago

https://github.com/rayliu0/hue/commit/2271a4543e3afd317c635055a410c5c06b8c1312

rayliu0 commented 1 day ago

https://stackoverflow.com/questions/15445981/how-do-i-disable-the-security-certificate-check-in-python-requests

bjornalm commented 19 hours ago

Hi, @rayliu0 and thanks for reporting. @athithyaaselvam can you take a look?