lucidworks / spark-solr

Tools for reading data from Solr as a Spark RDD and indexing objects from Spark into Solr using SolrJ.
Apache License 2.0
446 stars 250 forks source link

CloudSolrClient - Error while trying to connect and Request to collection #337

Open Veer20211 opened 2 years ago

Veer20211 commented 2 years ago

We are updating to CloudSolrClient, And the kotlin code as below

val builder = CloudSolrClient.Builder(listOf(zkHosts), Optional.empty())
val solrClient = builder.build()
solrClient.defaultCollection = collectionName
return solrClient

Error message as follows: *2021-11-26 16:50:18,853 [qtp1895479349-41] INFO TRACKING_LOGGER - 2021-11-26 16:50:18,902 [call-ev-search-0] ERROR o.a.s.c.s.impl.CloudSolrClient - Request to collection [betty-evaluate-bundles] failed due to (0) javax.net.ssl.SSLPeerUnverifiedException: Certificate for doesn't match any of the subject alternative names: [..io, xyzhost.io], retry=0 commError=false errorCode=0 2021-11-26 16:50:18,902 [call-ev-search-0] INFO o.a.s.c.s.impl.CloudSolrClient - request was not communication error it seems**

Any help on how to fix this would be more helpful and appreciated.