Hi Jared,
yes that is what I want to achieve:
Creating a master and a replica and I want them to be separate nodes.
I just realized that I posted the wrong URL, I was already using the
parameter maxShardsPerNode=1.
But just to be sure, I also tried it with your URL and I get the same
result.
Both replicas will be created on app02.
It does not matter where I create the collection (meaning app02 or
app03) via the collections api.
And as I said, both nodes appear live in zookeeper
[zk: localhost:4181(CONNECTED) 1] ls /live_nodes
[app02:9985_solr, app03:9985_solr]
Any clue?
Regards
Alexander
Am 2013-05-17 12:03, schrieb Jared Rodriguez:
Hi Alexander,
So it sounds like you want the collection created with a master and a
replica and you want one to be on each node? If so, I believe that you can
get that effect by specifying maxShardsPerNode=1 as part of your url line.
This will tell solr to create the master and replica that you desire but
to not put them on the same node.
Your url would look like:
http://app02:9985/solr/admin/collections?action=CREATE&name=storage&numShards=1&replicationFactor=2&collection.configName=storage-conf&maxShardsPerNode=1
The SolrCloud wiki does a good job of explaining the params and how they
function.
http://wiki.apache.org/solr/SolrCloud
Jared
On Fri, May 17, 2013 at 4:57 AM, A.Eibner <a_eib...@yahoo.de> wrote:
Hi, sorry for the delay.
I have two live nodes (also zookeeper knows these two
[app02:9985_solrl,app03:9985_**solr])
But when I want to create a collection via:
http://app02:9985/solr/admin/**collections?action=CREATE&**
name=storage&numShards=1&**replicationFactor=2&**
collection.configName=storage-**conf<http://app02:9985/solr/admin/collections?action=CREATE&name=storage&numShards=1&replicationFactor=2&collection.configName=storage-conf>
Both replicas will be created on app02.
Any clues ?
Should I post anything else?
Regards
Alexander
Am 2013-05-15 14:48, schrieb Mark Miller:
Yeah, I use both on an empty Solr - what is the error?
- Mark
On May 15, 2013, at 6:53 AM, A.Eibner <a_eib...@yahoo.de> wrote:
Hi,
I just wanted to ask, if anyone is using the collections API to create
collections,
or if not how they use the coreAPI to create a collection with
replication ?
Because I run into errors when creating a collection on an empty solr.
Kind regards
Alexander