-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
livy ssl issue #15806
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
You can pass extra_options' "verify" parameter and point it to "update-ca,certs" file. |
please let me know if it worked for you |
Closing it for now unless more information/verification is provided. |
Sorry if this sounds ignorant. But are you referring to the livy connection?
…On Thu, May 13, 2021, 10:55 AM Jarek Potiuk ***@***.***> wrote:
You can pass extra_options' "verify" parameter and point it to
"update-ca,certs" file.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#15806 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQ34AJBGRR2BFJKZQ2LAFDTNPY57ANCNFSM44ZLALLA>
.
|
The operator. Look at the Livy Operator. It is based on the HttpOperator and it has 'extra_options' field. You can pass there the same kind of dictionary as for the HttpOperator/Hook. One of the values might be 'verify'. verify might be False/True or it also can be a pth to the root certificate used to verify the server side |
@potiuk I am about to give this a try. Thanks for the help. I'll let you know the outcome. |
It worked. Just to test I set verify to False in the dictionary. I need to change it to use the ca cert, but want to see if it would work. Thanks again for your help. DM me your paypal info and I would be happy to send you some beer money. ;) |
Cool! No worries about beer money. Happy that it helped. |
Passing it the certs directory worked. |
Apache Airflow version: 2.0.1
Kubernetes version (if you are using kubernetes) (use
kubectl version
): 1.17.6uname -a
): Linux airflow-worker-1 4.14.35-2047.502.4.el7uek.x86_64 Bring in more resolution to hivestats #2 SMP Mon Apr 5 13:21:44 PDT 2021 x86_64 GNU/LinuxWhat happened:
Got the following trying to user the livy operator. I have added the certs to the image and ran update-ca-certs. I can use the curl command from the worker pod and the response is as expected. But pyopenssl is not able to verify the cert. I've changed the actual server name.
here is trhe output from curl running in the pod.
What you expected to happen:
No ssl error
The text was updated successfully, but these errors were encountered: