[
https://issues.apache.org/jira/browse/SOLR-12341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16470470#comment-16470470
]
Christopher Schultz commented on SOLR-12341:
--------------------------------------------
Adding the SOLR_POST_OPTS environment variable to the command line allows a
user to invoke the script in this way:
{{ $ SOLR_POST_OPTS="-Djavax.net.ssl.trustStore=..." bin/post -url
https://host:port/solr/core/update [file]}}
{{Without this patch, one would have to write one's own data-import tool which
really isn't necessary when `bin/post` is already there.}}
> Allow bin/post to include command-line-specified arguments to Java
> ------------------------------------------------------------------
>
> Key: SOLR-12341
> URL: https://issues.apache.org/jira/browse/SOLR-12341
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Components: scripts and tools
> Affects Versions: 7.3
> Reporter: Christopher Schultz
> Priority: Major
> Labels: patch
> Attachments: SOLR-post.patch
>
>
> When using a standalone (non-clustered, non-ZK'd) Solr instance, enabling TLS
> was a chore for a few reasons. One of them was that `bin/post` doesn't
> provide a way to specify the client's trust store.
> This is easy to remedy: add a parameter to the `java` invocation in the
> script to include options set in the shell.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]