Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-15199

bin/solr should expose all actions provided by SolrCLI, such as "api"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.0, 8.11.1
    • scripts and tools
    • None

    Description

      I have need to invoke the "api" action in SolrCLI via bin/solr, but it's not exposed, so I have to resort to doing this for K8s probes that require auth:

      java -Dbasicauth="$(cat /etc/secrets/dev-solrcloud-basic-auth/username):$(cat /etc/secrets/dev-solrcloud-basic-auth/password)"  -Djavax.net.ssl.keyStore="$(echo $SOLR_SSL_KEY_STORE)" -Djavax.net.ssl.keyStorePassword="$(echo $SOLR_SSL_KEY_STORE_PASSWORD)" -Djavax.net.ssl.trustStore="$(echo $SOLR_SSL_TRUST_STORE)" -Djavax.net.ssl.trustStorePassword="$(echo $SOLR_SSL_TRUST_STORE_PASSWORD)"  -Dsolr.ssl.checkPeerName=false -Dsolr.httpclient.builder.factory=org.apache.solr.client.solrj.impl.PreemptiveBasicAuthClientBuilderFactory -Dsolr.install.dir="/opt/solr" -Dlog4j.configurationFile="/opt/solr/server/resources/log4j2-console.xml" -classpath "/opt/solr/server/solr-webapp/webapp/WEB-INF/lib/*:/opt/solr/server/lib/ext/*:/opt/solr/server/lib/*" org.apache.solr.util.SolrCLI api -get https://localhost:8983/solr/admin/info/system
      

      In general, we should just have bin/solr fall-thru commands it doesn't recognize to SolrCLI and let that fail if the command isn't supported. That way, bin/solr won't need to be updated everytime SolrCLI implements a new action.

      Attachments

        Issue Links

          Activity

            People

              thelabdude Timothy Potter
              thelabdude Timothy Potter
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h