Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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
- fixes
-
SOLR-15332 bin/solr doesn't list the package command as an option
- Resolved
- relates to
-
SOLR-15831 Refactor bin/solr and bin/solr.cmd to delegate args parsing and usage help to SolrCLI
- Closed
- links to