"Fossies" - the Fresh Open Source Software Archive

Member "solr-8.4.1/solr/server/scripts/cloud-scripts/zkcli.sh" (10 Jan 2020, 900 Bytes) of package /linux/www/solr-8.4.1-src.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "zkcli.sh": 8.4.0_vs_8.4.1.

    1 #!/usr/bin/env bash
    2 
    3 # You can override pass the following parameters to this script:
    4 # 
    5 
    6 JVM="java"
    7 
    8 # Find location of this script
    9 
   10 sdir="`dirname \"$0\"`"
   11 
   12 log4j_config="file:$sdir/../../resources/log4j2-console.xml"
   13 
   14 # Settings for ZK ACL
   15 #SOLR_ZK_CREDS_AND_ACLS="-DzkACLProvider=org.apache.solr.common.cloud.VMParamsAllAndReadonlyDigestZkACLProvider \
   16 #  -DzkCredentialsProvider=org.apache.solr.common.cloud.VMParamsSingleSetCredentialsDigestZkCredentialsProvider \
   17 #  -DzkDigestUsername=admin-user -DzkDigestPassword=CHANGEME-ADMIN-PASSWORD \
   18 #  -DzkDigestReadonlyUsername=readonly-user -DzkDigestReadonlyPassword=CHANGEME-READONLY-PASSWORD"
   19 
   20 PATH=$JAVA_HOME/bin:$PATH $JVM $SOLR_ZK_CREDS_AND_ACLS $ZKCLI_JVM_FLAGS -Dlog4j.configurationFile=$log4j_config \
   21 -classpath "$sdir/../../solr-webapp/webapp/WEB-INF/lib/*:$sdir/../../lib/ext/*:$sdir/../../lib/*" org.apache.solr.cloud.ZkCLI ${1+"$@"}
   22