Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jb] Fix task log SSL: CERTIFICATE_VERIFY_FAILED error in yarn https-… #3846

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def retrieve_log_content(self, log_links, log_name, username, offset):
def get_executors_loglinks(self, job):
executor = None
if job.metrics and 'executors' in job.metrics and job.metrics['executors']:
executors = [executor for executor in job.metrics['executors'] if executor[0] == 'driver'] # look up driver executor
executors = [executor for executor in job.metrics['executors'] if executor[0] != 'driver'] # look up driver executor
if not executors:
executor = job.metrics['executors'][0]
else:
Expand Down
Loading