lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (SOLR-9997) Enable configuring SolrHttpClientBuilder via java system property
Date Thu, 19 Jan 2017 23:02:26 GMT


ASF GitHub Bot commented on SOLR-9997:

Github user hgadre commented on the issue:
    @janhoy Thanks for the review. We will need to update ref guide with instructions for
configuring SolrCLI against the secure SOLR cluster. e.g. with the basic auth plugin, following
env variable needs to be configured,
    export SOLR_AUTHENTICATION_CLIENT_BUILDER="org.apache.solr.client.solrj.impl.PreemptiveBasicAuthClientBuilderFactory"
    We can make this nicer e.g. by adding a command-line param such as --use-basic-auth. This
way the configuration of actual factory type can be hidden inside the script.
    With the latest changes, the pre-commit is also passing now.

> Enable configuring SolrHttpClientBuilder via java system property
> -----------------------------------------------------------------
>                 Key: SOLR-9997
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 6.3
>            Reporter: Hrishikesh Gadre
> Currently SolrHttpClientBuilder needs to be configured via invoking HttpClientUtil#setHttpClientBuilder(...)
API. On the other hand SolrCLI attempts to support configuring SolrHttpClientBuilder via Java
system property.
> But after changes for SOLR-4509, this is no longer working. This is because we need to
configure HttpClientBuilderFactory which can provide appropriate SolrHttpClientBuilder instance
(e.g. Krb5HttpClientBuilder). I verified that SolrCLI does not work in a kerberos enabled
cluster. During the testing I also found that SolrCLI is hardcoded to use basic authentication,
> This jira is to add support for configuring HttpClientBuilderFactory as a java system
property so that SolrCLI as well as other Solr clients can also benefit this. Also we should
provide a HttpClientBuilderFactory which support configuring preemptive basic authentication
so that we can remove the hardcoded basic auth usage in SolrCLI (and enable it work with kerberos).

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message