You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Timothy Potter (Jira)" <ji...@apache.org> on 2021/12/03 17:14:00 UTC
[jira] [Resolved] (SOLR-15199) bin/solr should expose all actions provided by SolrCLI, such as "api"
[ https://issues.apache.org/jira/browse/SOLR-15199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Potter resolved SOLR-15199.
-----------------------------------
Fix Version/s: main (9.0)
8.11.1
Resolution: Fixed
> 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
> Components: scripts and tools
> Reporter: Timothy Potter
> Assignee: Timothy Potter
> Priority: Major
> Fix For: main (9.0), 8.11.1
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> 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.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org