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" <[email protected]> : Reply-To: [email protected] : To: "[email protected]" <[email protected]> : 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:[email protected]>r<mailto:[email protected]>[email protected]<mailto:[email protected]> : 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/
