Hi Shawn,

Thanks for clarifying this. 
Is there a different way to set the embedded Zookeeper urlScheme parameter 
before ever starting tomcat? (some configuration file etc.)
This way I won't need to start tomcat twice.

Thanks,
Tali





From:   Shawn Heisey <apa...@elyograg.org>
To:     solr-user@lucene.apache.org
Date:   08/01/2015 05:14 PM
Subject:        Re: Solr with Tomcat - enabling SSL problem



On 1/8/2015 6:25 AM, Tali Finelt wrote:
> I am using Solr 4.10.2 with tomcat and embedded Zookeeper.
> I followed 
> 
https://cwiki.apache.org/confluence/display/solr/Enabling+SSL#EnablingSSL-SolrCloud
 

> to enable SSL.
> 
> I am currently doing the following:
> 
> Starting tomcat
> Running:
> ../scripts/cloud-scripts/zkcli.sh -zkhost localhost:9983 -cmd put 
> /clusterprops.json '{"urlScheme":"https"}' 
> Restarting tomcat
> Accessing Solr from my client using 
> org.apache.solr.client.solrj.impl.CloudSolrServer.
> 
> And this works. 
> If I don't restart tomcat again after running zkcli.sh, I get the 
> following error:
>         "IOException occured when talking to server at: 
> http://<ip>:<port>/solr/...." (http, not https).
> 
> Is it possible to do this without the second restart?

Solr will only read parameters like the urlScheme at startup.  Once it's
running, that information is never accessed again, so in order to get it
to change those parameters, a restart is required.

It might be possible to change the code so a re-read of these parameters
takes place ... but writing code to make fundamental changes to program
operation can be risky.  Restarting the program is much safer.

Thanks,
Shawn


Reply via email to