Reply
Expert Contributor
Posts: 119
Registered: ‎07-01-2015

Livy SSL with Hue

Hi,

 I am using Livy on Kerberized cluster with Hue (notebook). The Hue is configured to  use TLS (ssl_certificate, ssl_private_key, ssl_password.. set to a proper value).

In Hue advanced configuration for hue.ini there is a config for livy:

 

[spark]
livy_server_host=ip-xxxxxx.eu-west-1.compute.internal
livy_server_port=8998
languages='[{"name": "Scala", "type": "scala"},{"name": "Python", "type": "python"},{"name": "Impala SQL", "type": "impala"},{"name": "Hive SQL", "type": "hive"},{"name": "Text", "type": "text"}]'

[desktop]
allowed_hosts=*

app_blacklist=

 

In this configuration everything works well, the impersontion and the spark notebook.

 

But I would like to switch Livy to SSL as well with this configuration options in conf/livy.conf:

 

# Use this keystore for the SSL certificate and key.
livy.keystore = /opt/cloudera/security/pki/ip-xxxxxx.eu-west-1.compute.internal-server.jks
# Specify the keystore password.
livy.keystore.password = XXXXX
# Specify the key password.
livy.key-password = XXXXX

 

After the configuration change the Livy reports that is listening on HTTPS 

17/09/16 11:47:36 INFO WebServer: Starting server on https://ip-xxxxxxx.eu-west-1.compute.internal:8998

 

But Hue cannot connect:

('Connection aborted.', BadStatusLine("''",))

 

 

I tried also to change the property to:

[spark]
livy_server_host=https://ip-xxxxxx.eu-west-1.compute.internal

 

But did not helped. Any hints?

Thanks

 

Announcements