Hi Reej, another question, why are you using the solrUrl? I assume you are using a list because the Builder(List<String> solrUrls): > Provide a series of Solr URLs to be used when configuring CloudSolrClient instances. https://solr.apache.org/docs/8_8_0/solr-solrj/org/apache/solr/client/solrj/impl/CloudSolrClient.Builder.html#Builder-java.util.List-
On Wed, Jul 21, 2021 at 11:50 PM Vincenzo D'Amore <v.dam...@gmail.com> wrote: > Hi Reej, I'm used to instantiate a new CloudSolrClient with the zookeeper > ensemble. Well, something like this: > > final List<String> zkServers = new ArrayList<String>(); > zkServers.add("zookeeper1:2181"); zkServers.add("zookeeper2:2181"); > zkServers.add("zookeeper3:2181"); > final SolrClient client = new CloudSolrClient.Builder(zkServers, > Optional.empty()).build(); > > > On Wed, Jul 21, 2021 at 6:13 PM Reej Nayagam <reej...@gmail.com> wrote: > >> Hi All, >> >> I still face the same issue. Anyone had this issue before? >> Im making client connection as below, >> CloudSolrClinet client = new CloudSolrClient.Builder("solrURL").build(); >> clusterstate = client.getClusterstateProvider().getClusterState(); >> when I check the replicas inside the cluster state the baseurl is http >> instead of HTTPS >> but when i hit the url in browser >> /solr/admin/collections?action=CLUSTERSTATUS, I can see the base_url as >> https >> Im totally confused on whats wrong. Please help. Thanks >> >> *Thanks,* >> *Reej* >> >> >> On Wed, Jul 21, 2021 at 5:16 PM Reej M <reej...@gmail.com> wrote: >> >> > >> > >> > > On 21 Jul 2021, at 5:07 PM, Vincenzo D'Amore <v.dam...@gmail.com> >> wrote: >> > > Hi, >> > Is ok sometime all of us just loose our cool. >> > By the way we have followed the same steps as per the documentation >> only. >> > Im trying to clear the zk data, clear everything and recheck again if >> that >> > might help. Thanks >> > >> > > this is your version, >> > > >> > >> https://solr.apache.org/guide/8_8/enabling-ssl.html#EnablingSSL-SolrCloud >> > > anyway, pay attention to clusterprop >> > > >> > >> https://solr.apache.org/guide/8_8/enabling-ssl.html#update-cluster-properties-for-existing-collections >> > > >> > > On Wed, Jul 21, 2021 at 11:04 AM Vincenzo D'Amore <v.dam...@gmail.com >> > >> > > wrote: >> > > >> > >> Have you double checked how ssl has been configured? >> > >> I think this doc could help >> > >> >> > >> https://solr.apache.org/guide/6_6/enabling-ssl.html#EnablingSSL-SolrCloud >> > >> >> > >> And double check the "clusterprop" urlScheme >> > >> >> > >> On Wed, Jul 21, 2021 at 11:01 AM Vincenzo D'Amore < >> v.dam...@gmail.com> >> > >> wrote: >> > >> >> > >>> Sorry for being so rude, I was in a hurry and just a while after the >> > mail >> > >>> was sent I thought you weren't in the position to take a screenshot. >> > >>> >> > >>> >> > >>> On Wed, Jul 21, 2021 at 10:41 AM Reej Nayagam <reej...@gmail.com> >> > wrote: >> > >>> >> > >>>> Hi Sorry, >> > >>>> My offic system doesn't have internet for security reasons. >> > >>>> The issue is we have enabled ssl in solr and we try to get the >> > >>>> clusterstate >> > >>>> as below >> > >>>> cloudsolrclient.getclusterstateprovider.getclusterstate() >> > >>>> then using the clusterstate doccollection >> > >>>> DocCollection dc = clusterstate.getCollection(collectionName) >> > >>>> for(Slice slice:dc.getSlices()){ >> > >>>> for(Replica replica:slice.getReplicas()){ >> > >>>> replica.get("base_url") >> > >>>> } >> > >>>> } >> > >>>> >> > >>>> replica.get("base_url") -- returns a http url but what we have >> > configured >> > >>>> is a https url >> > >>>> solr admin page we are able to access using https url and can see >> the >> > >>>> clusterstatus with base_url having https node url >> > >>>> Not sure how through java it is different >> > >>>> >> > >>>> >> > >>>> *Thanks,* >> > >>>> *Reej* >> > >>>> >> > >>>> >> > >>>> On Wed, Jul 21, 2021 at 4:19 PM Vincenzo D'Amore < >> v.dam...@gmail.com> >> > >>>> wrote: >> > >>>> >> > >>>>> your screenshots are unreadable, couldn't you copy and paste the >> text >> > >>>> from >> > >>>>> the screen? >> > >>>>> >> > >>>>> On Wed, Jul 21, 2021 at 9:18 AM Reej M <reej...@gmail.com> wrote: >> > >>>>> >> > >>>>>> Hi Team, >> > >>>>>> >> > >>>>>> We have enabled ssl. Solr version 8.8.2, zk - 3.6.3 >> > >>>>>> When we try to get the base url using >> > >>>>>> cloudsolrclient.getclusterstateprovider, it returns http url >> instead >> > >>>> of >> > >>>>>> HTTPS. >> > >>>>>> Please find the screenshots while I debug, >> > >>>>>> Code used >> > >>>>>> >> > >>>>>> From solr admin server - using >> > >>>>>> /solr/admin/collection?action=CLUSTERSTATUS&wt=json return https >> as >> > >>>> base url >> > >>>>>> >> > >>>>>> Kindly help to fix this. Thanks >> > >>>>>> >> > >>>>> >> > >>>>> >> > >>>>> -- >> > >>>>> Vincenzo D'Amore >> > >>>>> >> > >>>>> >> > >>>> >> > >>> >> > >>> >> > >>> -- >> > >>> Vincenzo D'Amore >> > >>> >> > >>> >> > >> >> > >> -- >> > >> Vincenzo D'Amore >> > >> >> > >> >> > > >> > > -- >> > > Vincenzo D'Amore >> > >> > >> > > > -- > Vincenzo D'Amore > > -- Vincenzo D'Amore