SOLR-5129: Add support for changing flag in bin/solr

This commit is contained in:
Cao Manh Dat 2017-10-21 22:05:30 +07:00
parent dfd13624c2
commit 2bc2759bf4
3 changed files with 10 additions and 0 deletions

View File

@ -1919,6 +1919,10 @@ function launch_solr() {
GC_TUNE=($GC_TUNE)
fi
if [ -n "$SOLR_WAIT_FOR_ZK" ]; then
WAIT_FOR_ZK_PROP="-DwaitForZk=$SOLR_WAIT_FOR_ZK"
SOLR_OPTS+=($WAIT_FOR_ZK_PROP)
fi
# If SSL-related system props are set, add them to SOLR_OPTS
if [ "$SOLR_SSL_ENABLED" ]; then

View File

@ -48,6 +48,9 @@ REM By default the start script uses "localhost"; override the hostname here
REM for production SolrCloud environments to control the hostname exposed to cluster state
REM set SOLR_HOST=192.168.1.1
REM By default Solr will try to connect to Zookeeper with 30 seconds in timeout; override the timeout if needed
REM set SOLR_WAIT_FOR_ZK=30
REM By default the start script uses UTC; override the timezone if needed
REM set SOLR_TIMEZONE=UTC

View File

@ -60,6 +60,9 @@
# for production SolrCloud environments to control the hostname exposed to cluster state
#SOLR_HOST="192.168.1.1"
# By default Solr will try to connect to Zookeeper with 30 seconds in timeout; override the timeout if needed
#SOLR_WAIT_FOR_ZK="30"
# By default the start script uses UTC; override the timezone if needed
#SOLR_TIMEZONE="UTC"