tigerquoll commented on issue #1558: METRON-2312 solr scripts fixup
URL: https://github.com/apache/metron/pull/1558#issuecomment-553654284
 
 
   Quote from jira
   
   > When installing SOLR cloud, its been highly recommended to use the cluster 
zookeeper ensemble rather then installing your in own mini-zk cluster just for 
SOLR.  For the past several years, its been standard practice to use a chrooted 
/ namespaced environment for storing solr information in zookeeper.   The 
practical effects of this is to need to prepend '/solr' to any zookeeper 
ensemble URLs.  The use of chrooted zookeeper configurations is the default in 
both lucidworks/HWX SOLR (from 4.0), and for Cloudera SOLR (not sure which 
version but for many years).  It has also been the documented recommendation 
for Apache SOLR Cloud since approximately version 6.6.
   > 
   > End result is, if Metron is dealing with a SOLR cluster that has been 
installed or updated any time in the past couple of years, it is dealing with a 
SOLR configuration stored in a chrooted Zookeeper environment.  
   > 
   > The problem is the Metron SOLR collection create/destroy scripts assume 
that we are not using a CHROOTed environment, and fail badly when the expected 
SOLR configuration is not present at the expected location in SOLR.  Buried in 
the readme is instruction on how to set modify the zookeeper environment 
variables before running the script to add chrooted address, and when the 
scripts are used by Ambari, they are called using the correct chrooted quorum 
URL, because there is a seperate configuration item that can be set to indicate 
the chroot zookeeper address for SOLR.
   > 
   > Having just been burnt by this I think we should at least
   > 
   > Cleanly catch the failure of the zkcli command in the collection scripts 
when it queries for zookeeper state that is not present
   > If the zkcli error is caught, make a suggestion in the error message to 
check for a chrooted SOLR cloud zookeeper configuration.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to