mirror of https://github.com/apache/lucene.git
27 lines
952 B
Bash
Executable File
27 lines
952 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# You can override pass the following parameters to this script:
|
|
#
|
|
|
|
JVM="java"
|
|
|
|
# Find location of this script
|
|
|
|
sdir="`dirname \"$0\"`"
|
|
|
|
if [ -n "$LOG4J_PROPS" ]; then
|
|
log4j_config="file:$LOG4J_PROPS"
|
|
else
|
|
log4j_config="file:$sdir/log4j2.xml"
|
|
fi
|
|
|
|
# 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"
|
|
|
|
PATH=$JAVA_HOME/bin:$PATH $JVM $SOLR_ZK_CREDS_AND_ACLS $ZKCLI_JVM_FLAGS -Dlog4j.configurationFile=$log4j_config \
|
|
-classpath "$sdir/../../solr-webapp/webapp/WEB-INF/lib/*:$sdir/../../lib/ext/*:$sdir/../../lib/*" org.apache.solr.cloud.ZkCLI ${1+"$@"}
|
|
|