Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Basic authentication of CDH solr

Basic authentication of CDH solr

New Contributor

Solr basic authentication is through the online request. SetBasicAuthCredentials, but CHD Solr does not this method, my way through the use of login authentication, procedure is as follows:

private static void loginSolr(String username,String password) {
HttpClientUtil.setConfigurer(new PreemptiveBasicAuthConfigurer());
ModifiableSolrParams params = new ModifiableSolrParams();
params.set(HttpClientUtil.PROP_BASIC_AUTH_PASS, password);

  • But cdh-solr doesn't seem to support it

Authentication scheme Basic not supported

Don't have an account?
Coming from Hortonworks? Activate your account here