Search : connect to Solr using HTTPS

Hello,

I installed HUE 4.5 on a node using the tar (make install). Everything seems good.

Now, I’m trying to configure my connection to my SOLR cluster.

###########################################################################

Settings to configure Solr Search

###########################################################################

[search]

URL of the Solr Server

solr_url=http://localhost:8983/solr/

solr_url=https://:8983/solr/

Requires FQDN in solr_url if enabled

security_enabled=false

security_enabled=true

Query sent when no term is entered

empty_query=:

[[ssl]]
# SSL communication enabled for this server.
## enabled=false
enabled=true

# Path to Certificate Authority certificates.
## cacerts=/etc/hue/cacerts.pem
cacerts=/etc/pki/ca-trust/source/anchors/ca-autority.pem

# Choose whether Hue should validate certificates received from the server.
## validate=true

cert=/usr/local/hue/ssl/cert.pem

###########################################################################

Settings to configure Solr API lib

###########################################################################

[libsolr]

Choose whether Hue should validate certificates received from the server.

ssl_cert_ca_verify=true

ssl_cert_ca_verify=false

Default path to Solr in ZooKeeper.

solr_zk_path=/solr

Unfortunately, i’ve an error message concerning a “BAD Handshake”.

Using the java class SSLPoke and the same certificates in a truststore, it works on the same node as hue.

I think it’s only a bad configuration basis.

Can you help me?

Thanks

Normally using https in the solr_url should be enough.

[search]
solr_url=https://...
[libsolr]
 ssl_cert_ca_verify=true or false depending on your certs

security_enabled should be false as this is for kerberors.