lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Schultz (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-12341) Allow bin/post to include command-line-specified arguments to Java
Date Thu, 10 May 2018 14:38:00 GMT

    [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message