Custmizations are what solr.in.sh is designed for.

This is covered in some depth in the ref guide...

https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production


Alternatively, for quick dev purposes, you can override it as an env 
variable when execing the script just like any other shell variable...

ZK_CLIENT_TIMEOUT=50000000 bin/solr

(This is all mentioned in the "CONTROLLING STARTUP" comments at the top of 
bin/solr)



: Date: Tue, 1 Dec 2015 15:43:59 +0000
: From: "Kelly, Frank" <frank.ke...@here.com>
: Reply-To: solr-user@lucene.apache.org
: To: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org>
: Subject: Is there a way to set zkClientTimeout from command line?
: 
: I am executing "/bin/solr" for SolrCloud and noticed that there is a Bash 
parameter that is being inspected but is never being set except by default
: 
:  if [ -z "$ZK_CLIENT_TIMEOUT" ]; then
:     ZK_CLIENT_TIMEOUT="15000"   #I would like this to be settable from 
command line
:   fi
: 
:   CLOUD_MODE_OPTS=("-DzkClientTimeout=$ZK_CLIENT_TIMEOUT")
: 
: I would like to set that from the Command line (like how I set the memory "-m 
1g") so that our Ops folks don't have to edit the script on deployment.
: Am I missing something about the command line for "solr"?
: 
: -Frank
: 
: Frank Kelly
: Principal Software Engineer
: Predictive Analytics Team (SCBE/HAC/CDA)
: 
: 
: 
: 
: Email: 
f<mailto:frank.ke...@here.com>r<mailto:frank.ke...@here.com>ank.ke...@here.com<mailto:frank.ke...@here.com>
: Website: http://www.here.com<http://www.here.com/>
: 
: 
: 
: 
: 5 Wayside Rd, Burlington, MA 01803, USA
: Here, a Nokia business
: 
: 
: 
: 
: 
: 

-Hoss
http://www.lucidworks.com/

Reply via email to