Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

SSL error for Livy

SSL error for Livy

New Contributor

we got the below error while submiting spark jobs via Livy REST API using python script

 

requests.exceptions.SSLError: HTTPSConnectionPool(host=<hostname>, port=8999): Max retries exceeded with url: /batches (Caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure

 

Steps followed:

We generated the keystore(.jks) file using our Domain specific certificates and NOT self signed certificates

 

and we generated the CAcert(.pem) file to point the correct CN and placed it in the client machine.

 

We have configured Livy Ambari with the ssl params

livy.keystore = <keystore_file>

livy.keystore.password = <storePassword>

livy.key-password = <keyPassword>

 

and the LIVY_URL is changed to https://<host>:8999

 

Is there something we are missing on the client end while hitting the post request of the livy server?

Note: this is a kerborized cluster

 

 

3 REPLIES 3
Highlighted

Re: SSL error for Livy

Expert Contributor

@sashik Which python version you are using

Make sure openssl package is installed

 

Re: SSL error for Livy

New Contributor

@Scharan python 3.6 and openssl is also installed..

Re: SSL error for Livy

Expert Contributor

@sashik  Can you try installing pyOpenSSL in the Python3 

Don't have an account?
Coming from Hortonworks? Activate your account here