2012-07-11 17:45:43 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# You can override pass the following parameters to this script:
|
|
|
|
#
|
|
|
|
|
|
|
|
JVM="java"
|
|
|
|
|
|
|
|
# Find location of this script
|
|
|
|
|
|
|
|
sdir="`dirname \"$0\"`"
|
|
|
|
|
2019-12-30 10:28:24 -05:00
|
|
|
log4j_config="file:$sdir/../../resources/log4j2-console.xml"
|
2016-04-29 14:29:24 -04:00
|
|
|
|
2016-05-03 18:57:59 -04:00
|
|
|
# Settings for ZK ACL
|
|
|
|
#SOLR_ZK_CREDS_AND_ACLS="-DzkACLProvider=org.apache.solr.common.cloud.VMParamsAllAndReadonlyDigestZkACLProvider \
|
|
|
|
# -DzkCredentialsProvider=org.apache.solr.common.cloud.VMParamsSingleSetCredentialsDigestZkCredentialsProvider \
|
|
|
|
# -DzkDigestUsername=admin-user -DzkDigestPassword=CHANGEME-ADMIN-PASSWORD \
|
|
|
|
# -DzkDigestReadonlyUsername=readonly-user -DzkDigestReadonlyPassword=CHANGEME-READONLY-PASSWORD"
|
|
|
|
|
2018-03-25 22:16:09 -04:00
|
|
|
PATH=$JAVA_HOME/bin:$PATH $JVM $SOLR_ZK_CREDS_AND_ACLS $ZKCLI_JVM_FLAGS -Dlog4j.configurationFile=$log4j_config \
|
2017-03-15 20:02:27 -04:00
|
|
|
-classpath "$sdir/../../solr-webapp/webapp/WEB-INF/lib/*:$sdir/../../lib/ext/*:$sdir/../../lib/*" org.apache.solr.cloud.ZkCLI ${1+"$@"}
|
2012-07-11 17:45:43 -04:00
|
|
|
|