Support Questions

Find answers, ask questions, and share your expertise

Solr - SASL configuration failed. Will continue connection to Zookeeper server without SASL authentication, if Zookeeper server allows it

New Contributor

"message":"Could not login: the Client is being asked for a password, but the ZooKeeper Client code does not currently support obtaining a password from the user. Make sure that the Client is configured to use a ticket cache (using the JAAS configuration setting 'useTicketCache=true)' and restart the Client. If you still get this message after that, the TGT in the ticket cache has expired and must be manually refreshed. To do so, first determine if you are using a password or a keytab. If the former, run kinit in a Unix shell in the environment of the user who is running this Zookeeper Client using the command 'kinit <princ>' (where <princ> is the name of the Client's Kerberos principal). If the latter, do 'kinit -k -t <keytab> <princ>' (where <princ> is the name of the Kerberos principal, and <keytab> is the location of the keytab file). After manually refreshing your cache, restart this Client. If you continue to see this message after manually refreshing your cache, ensure that your KDC host's clock is in sync with this host's clock."}
        [Krb5LoginModule] authentication failed
No password provided
{"ts":"2022-09-20T05:54:13.215-0500","level":"WARN","type":"Business","application":"match-api","thread":"main,"logger":"org.apache.zookeeper.ClientCnxn","message":"SASL configuration failed. Will continue connection to Zookeeper server without SASL authentication, if Zookeeper server allows it.","stack_trace":" No password provided\r\n\tat\r\n\tat\r\n\tat\r\n\tat java.base/\r\n\tat java.base/$\r\n\tat java.base/$\r\n\tat java.base/ Method)\r\n\tat java.base/\r\n\tat java.base/\r\n\tat org.apache.zookeeper.Login.login(\r\n\tat org.apache.zookeeper.Login.<init>(\r\n\tat org.apache.zookeeper.client.ZooKeeperSaslClient.createSaslClient(\r\n\tat org.apache.zookeeper.client.ZooKeeperSaslClient.<init>(\r\n\tat org.apache.zookeeper.ClientCnxn$SendThread.startConnect(\r\n\tat org.apache.zookeeper.ClientCnxn$\r\n"}



Facing issue while connecting to Solr from the local machine


New Contributor

System.setProperty("", "C:\\my_jaas.conf");

System.setProperty("", "C:\\krb5.conf");

String zkHosts = ",,";

Krb5HttpClientBuilder krbBuild = new Krb5HttpClientBuilder();
SolrHttpClientBuilder kb = krbBuild.getBuilder();
CloudSolrClient solrServer = new CloudSolrClient.Builder().withZkHost(zkHosts).build();

String collectionName = "test_col";

SolrQuery parameters = new SolrQuery();
parameters.set("q", "*:*");
try {
QueryResponse response = solrServer.query(parameters);
for (SolrDocument solrDocument : response.getResults()) {
System.out.println(" " + solrDocument.toString());
} catch (SolrServerException | IOException e) {



implemented code