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 adfel70 <ad...@gmail.com> on 2013/03/17 15:49:29 UTC
Can I run solr cluster on other ports after inital run?
Hi,
I see that solr nodes are given their names in zookeeper with ip-host
dependence.
Can I change these ports?
Will zookeeper know that the nodes run on new ports in order to update all
its data?
thanks.
--
View this message in context: http://lucene.472066.n3.nabble.com/Can-I-run-solr-cluster-on-other-ports-after-inital-run-tp4048227.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Can I run solr cluster on other ports after inital run?
Posted by Mark Miller <ma...@gmail.com>.
On Mar 17, 2013, at 11:03 AM, adfel70 <ad...@gmail.com> wrote:
> Can I somehow you this with the collections API?
> Currently I use collections API to create a new collection.
> Any feature that gives all the cores that are created in background when I
> use collections API, a single coreNodeName-suffix for example?
No, no collections API support yet. It would be good to do, though I have not thought through it yet.
Feel free to make a JIRA for it.
- Mark
Re: Can I run solr cluster on other ports after inital run?
Posted by adfel70 <ad...@gmail.com>.
Can I somehow you this with the collections API?
Currently I use collections API to create a new collection.
Any feature that gives all the cores that are created in background when I
use collections API, a single coreNodeName-suffix for example?
Mark Miller-3 wrote
> If you are using Solr 4.0 or 4.1, you have to add the new shard with the
> ip that you want to take over and then remove the original. You can't have
> a new ip take over for an old one, you have to just add a new replica and
> kill the original.
>
> In Solr 4.2 there is a property called coreNodeName that can be used in
> solr.xml and with the core admin api. If you use this when you first start
> your cluster, you can start a new machine with the same coreNodeName and
> it will take over for that SolrCore.
>
> - Mark
>
> On Mar 17, 2013, at 10:49 AM, adfel70 <
> adfel70@
> > wrote:
>
>> Hi,
>> I see that solr nodes are given their names in zookeeper with ip-host
>> dependence.
>> Can I change these ports?
>> Will zookeeper know that the nodes run on new ports in order to update
>> all
>> its data?
>>
>> thanks.
--
View this message in context: http://lucene.472066.n3.nabble.com/Can-I-run-solr-cluster-on-other-ports-after-inital-run-tp4048227p4048231.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Can I run solr cluster on other ports after inital run?
Posted by Mark Miller <ma...@gmail.com>.
If you are using Solr 4.0 or 4.1, you have to add the new shard with the ip that you want to take over and then remove the original. You can't have a new ip take over for an old one, you have to just add a new replica and kill the original.
In Solr 4.2 there is a property called coreNodeName that can be used in solr.xml and with the core admin api. If you use this when you first start your cluster, you can start a new machine with the same coreNodeName and it will take over for that SolrCore.
- Mark
On Mar 17, 2013, at 10:49 AM, adfel70 <ad...@gmail.com> wrote:
> Hi,
> I see that solr nodes are given their names in zookeeper with ip-host
> dependence.
> Can I change these ports?
> Will zookeeper know that the nodes run on new ports in order to update all
> its data?
>
> thanks.