You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jakov Sosic <js...@gmail.com> on 2014/09/07 17:51:06 UTC
New cloud - replica in recovering state?
Hi guys,
I'm trying to set up new solr cloud, with two core's, each with two
shards and two replicas.
This is my solr.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<solr persistent="true"
zkHost="10.200.1.104:2181,10.200.1.105:2181,10.200.1.106:2181">
<cores adminPath="/admin/cores"
defaultCoreName="mycore1"
host="${host:}" hostPort="${jetty.port:}"
hostContext="${hostContext:}"
zkClientTimeout="${zkClientTimeout:15000}">
<core name="mycore1" instanceDir="mycore1" numShards="2"/>
<core name="mycore2" instanceDir="mycore2" numShards="2"/>
</cores>
</solr>
But when I start everything, I can see 4 cores (each for 1 shard) are
green in solr01:8080/solr/#/~cloud, but replicas are in yellow,
RECOVERING state.
How can I fix them to go from Recovering to Active?
Re: New cloud - replica in recovering state?
Posted by Erick Erickson <er...@gmail.com>.
Whew! Thanks for letting us know...
Yeah, the core discovery mode seems easier to
use when maintaining lots of cores since solr.xml
can be a pain.
That said, whatever works of course.
Erick
On Mon, Sep 8, 2014 at 4:28 AM, Jakov Sosic <js...@gmail.com> wrote:
> On 09/08/2014 02:55 AM, Erick Erickson wrote:
>>
>> I really recommend you use the new-style core discovery, if for no
>> other reason than this style is deprecated in 5.0. See:
>> https://wiki.apache.org/solr/Solr.xml%204.4%20and%20beyond
>
>
> Oh I didn't know that.
>
> Anyway problem I experienced was result of wrong hostPort and/or hostContext
> set in <cores> tag.
>
> After I fixed those, now it works, but anyway I will take a look into new
> way of setting up cores. Ty!
>
Re: New cloud - replica in recovering state?
Posted by Jakov Sosic <js...@gmail.com>.
On 09/08/2014 02:55 AM, Erick Erickson wrote:
> I really recommend you use the new-style core discovery, if for no
> other reason than this style is deprecated in 5.0. See:
> https://wiki.apache.org/solr/Solr.xml%204.4%20and%20beyond
Oh I didn't know that.
Anyway problem I experienced was result of wrong hostPort and/or
hostContext set in <cores> tag.
After I fixed those, now it works, but anyway I will take a look into
new way of setting up cores. Ty!
Re: New cloud - replica in recovering state?
Posted by Erick Erickson <er...@gmail.com>.
I really recommend you use the new-style core discovery, if for no
other reason than this style is deprecated in 5.0. See:
https://wiki.apache.org/solr/Solr.xml%204.4%20and%20beyond
FWIW,
Erick
On Sun, Sep 7, 2014 at 8:51 AM, Jakov Sosic <js...@gmail.com> wrote:
> Hi guys,
>
>
> I'm trying to set up new solr cloud, with two core's, each with two shards
> and two replicas.
>
> This is my solr.xml:
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <solr persistent="true"
> zkHost="10.200.1.104:2181,10.200.1.105:2181,10.200.1.106:2181">
> <cores adminPath="/admin/cores"
> defaultCoreName="mycore1"
> host="${host:}" hostPort="${jetty.port:}"
> hostContext="${hostContext:}"
> zkClientTimeout="${zkClientTimeout:15000}">
> <core name="mycore1" instanceDir="mycore1" numShards="2"/>
> <core name="mycore2" instanceDir="mycore2" numShards="2"/>
> </cores>
> </solr>
>
> But when I start everything, I can see 4 cores (each for 1 shard) are green
> in solr01:8080/solr/#/~cloud, but replicas are in yellow, RECOVERING state.
>
> How can I fix them to go from Recovering to Active?