You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2015/12/16 00:46:46 UTC

[jira] [Updated] (SOLR-8421) improve error message when zkHost with multiple hosts and redundent chroot specified

     [ https://issues.apache.org/jira/browse/SOLR-8421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hoss Man updated SOLR-8421:
---------------------------
    Description: 
If a user mistakenly tries to specify the chroot on every zk host:port  in the zkhosts string, the error they get is confusing.

we should try to improve the error/logging to make it more evident what the problem is....

{panel:title=initial bug report from user}
I'm trying to run Solr Cloud with following command:

{code}
./bin/solr -f -c -z localhost:2181/test,localhost:2182/test
{code}

And getting error:

{code}
749  ERROR (main) [   ] o.a.s.c.SolrCore null:org.apache.solr.common.cloud.ZooKeeperException: A chroot was specified in ZkHost but the znode doesn't exist. localhost:2181/test,localhost:2182/test
{code}

Node "/test" exists in zookeeper. And both:

{code}
./bin/solr -f -c -z localhost:2181,localhost:2182
{code}

{code}
./bin/solr -f -c -z localhost:2181/test
{code}

works fine.

But I cannot get it work with multiple nodes and chroot specified.
{panel}

  was:
I'm trying to run Solr Cloud with following command:

{code}
./bin/solr -f -c -z localhost:2181/test,localhost:2182/test
{code}

And getting error:

{code}
749  ERROR (main) [   ] o.a.s.c.SolrCore null:org.apache.solr.common.cloud.ZooKeeperException: A chroot was specified in ZkHost but the znode doesn't exist. localhost:2181/test,localhost:2182/test
{code}

Node "/test" exists in zookeeper. And both:

{code}
./bin/solr -f -c -z localhost:2181,localhost:2182
{code}

{code}
./bin/solr -f -c -z localhost:2181/test
{code}

works fine.

But I cannot get it work with multiple nodes and chroot specified.

     Issue Type: Improvement  (was: Bug)
        Summary: improve error message when zkHost with multiple hosts and redundent chroot specified  (was: zkHost with chroot and multiple hosts not working)

> improve error message when zkHost with multiple hosts and redundent chroot specified
> ------------------------------------------------------------------------------------
>
>                 Key: SOLR-8421
>                 URL: https://issues.apache.org/jira/browse/SOLR-8421
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 5.4
>         Environment: Solr Cloud
>            Reporter: Dmitry Myaskovskiy
>
> If a user mistakenly tries to specify the chroot on every zk host:port  in the zkhosts string, the error they get is confusing.
> we should try to improve the error/logging to make it more evident what the problem is....
> {panel:title=initial bug report from user}
> I'm trying to run Solr Cloud with following command:
> {code}
> ./bin/solr -f -c -z localhost:2181/test,localhost:2182/test
> {code}
> And getting error:
> {code}
> 749  ERROR (main) [   ] o.a.s.c.SolrCore null:org.apache.solr.common.cloud.ZooKeeperException: A chroot was specified in ZkHost but the znode doesn't exist. localhost:2181/test,localhost:2182/test
> {code}
> Node "/test" exists in zookeeper. And both:
> {code}
> ./bin/solr -f -c -z localhost:2181,localhost:2182
> {code}
> {code}
> ./bin/solr -f -c -z localhost:2181/test
> {code}
> works fine.
> But I cannot get it work with multiple nodes and chroot specified.
> {panel}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org