Thanks. So I tried what you had, however, you are not specifying _zkChroot,
so I don't know what to put there. I don't know what that value would be for
me, or if I even need it. So I commented out most you example to:

Optional<String> chrootOption = null; 
      //  if (StringUtils.isNotBlank(_zkChroot)) 
      //  { 
      //     chrootOption = Optional.of(_zkChroot); 
     //   } 
    //    else 
    //    { 
           chrootOption = Optional.empty(); 

by the way which StringUtils API are you using? There are a couple that have
that isNotBlank.

In any event, I have now getting a different exception when trying to create
the client:

 ERROR [] - <Failed to index Incident 8>
java.lang.RuntimeException: Error committing document
     
(a bunch of stack details left out here..)

Caused by: org.apache.solr.common.SolrException:
java.lang.IllegalArgumentException: Invalid path string
"//172.16.120.14:2281,http://172.16.120.14:2282,http://172.16.120.14:2283";
caused by empty node name specified @1
        at
org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:171)
        at
org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:120)
        at
org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:110)
        at
org.apache.solr.common.cloud.ZkStateReader.<init>(ZkStateReader.java:285)
        at
org.apache.solr.client.solrj.impl.ZkClientClusterStateProvider.connect(ZkClientClusterStateProvider.java:155)
        at
org.apache.solr.client.solrj.impl.CloudSolrClient.connect(CloudSolrClient.java:399)
        at
org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:828)
        at
org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:818)

So, perhaps I need the root specified (since it say "caused by empty node
name specifed @1")? If so, I don't know what it would be.

Thanks for any insights.




--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Reply via email to