Timothy Potter created SOLR-15199: ------------------------------------- Summary: bin/solr should expose all actions provided by SolrCLI, such as "api" Key: SOLR-15199 URL: https://issues.apache.org/jira/browse/SOLR-15199 Project: Solr Issue Type: Improvement Security Level: Public (Default Security Level. Issues are Public) Components: scripts and tools Reporter: Timothy Potter Assignee: Timothy Potter
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: {code} 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 {code} 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. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org