Skip to content

Commit

Permalink
[jb] Fix task log SSL: CERTIFICATE_VERIFY_FAILED error in yarn https-…
Browse files Browse the repository at this point in the history
…only env.
  • Loading branch information
raylliu committed Sep 14, 2024
1 parent 08ca92c commit 2271a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop/libs/hadoop/src/hadoop/yarn/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import sys
import threading
import time
import urllib.parse
import heapq

from desktop.lib.rest.http_client import HttpClient
Expand Down Expand Up @@ -61,6 +60,7 @@ def get_log_client(log_link):
if client_tuple is None:
client = HttpClient(base_url, logger=LOG)
yarn_cluster = cluster.get_cluster_conf_for_job_submission()
client.set_verify(yarn_cluster.SSL_CERT_CA_VERIFY.get())
if yarn_cluster.SECURITY_ENABLED.get():
client.set_kerberos_auth()
else:
Expand Down

0 comments on commit 2271a45

Please sign in to comment.