Re: Using the collections API to create a new collection

2015-03-15 Thread Mike Thomsen
Thanks. I think I found the final problem that I was facing in this ticket: https://issues.apache.org/jira/browse/SOLR-5306 On Sun, Mar 15, 2015 at 11:53 AM, Erick Erickson wrote: > Yes, "configs" is the same as configsets, I tend to use them > interchangeably. > > You're still missing the poin

Re: Using the collections API to create a new collection

2015-03-15 Thread Erick Erickson
Yes, "configs" is the same as configsets, I tend to use them interchangeably. You're still missing the point. Once the files are up in Zookeeper, that's where they live. They do NOT then live on the nodes hosting the replicas. So, assuming that when you write bq: Our ZK configuration data is unde

Re: Using the collections API to create a new collection

2015-03-15 Thread Mike Thomsen
I tried that with upconfig, and it created it under /configs. Our ZK configuration data is under /dev-local-solr/configs. Not sure how to specify that. Also, is "configs" the same thing as "configsets" for the version of solr that I'm using? Thanks, Mike On Sat, Mar 14, 2015 at 6:38 PM, Anshum

Re: Using the collections API to create a new collection

2015-03-14 Thread Anshum Gupta
Hi Mike, Here's what you want to do: 1. Create or use an existing config set. 2. Upload it to ZooKeeper ( https://cwiki.apache.org/confluence/display/solr/Command+Line+Utilities) 3. Use the config name when you create the collection. This would link the config set in zk with your collection. I th

Re: Using the collections API to create a new collection

2015-03-14 Thread Mike Thomsen
I added this to my solr.xml and restarted, but it didn't do anything even though the path is valid and /opt/configsets contains a folder called base with a conf folder and valid schema and solrconfig... ${configSetBaseDir:/opt/configsets} Any ideas? Is there a way to force an up

Re: Using the collections API to create a new collection

2015-03-14 Thread Mike Thomsen
I looked in the tree view and I have only a node called "configs." Nothing called "configsets." That's a serious problem, right? So if I'm reading this correctly, I should be able to create a configset based on an existing collection and load it into zookeeper once I find the right location to put

Re: Using the collections API to create a new collection

2015-03-14 Thread Erick Erickson
I bet you did not push the configuration to Zookeeper before creating the collection. If you look in your admin UI, the Cloud link and the "tree" version, you'll find a "configsets" directory that'll show you what you _have_ put in ZK, and I'll bet you find nothing like a config set (containing sc

Re: Using the Collections API

2013-05-17 Thread Mark Miller
What version of Solr? I think there was a bug a couple versions back (perhaps introduced in 4.1 if I remember right) that made it so creates were not spread correctly. - Mark

Re: Using the Collections API

2013-05-17 Thread Shawn Heisey
On 5/17/2013 4:03 AM, Jared Rodriguez wrote: > 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 c

Re: Using the Collections API

2013-05-17 Thread A.Eibner
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

Re: Using the Collections API

2013-05-17 Thread 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

Re: Using the Collections API

2013-05-17 Thread A.Eibner
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

Re: Using the Collections API

2013-05-15 Thread Jared Rodriguez
Hi Mark, Yes, I am using reload. Here is the jira that I filed. https://issues.apache.org/jira/browse/SOLR-4805 Please let me know if there is any additional data that you need. On Wed, May 15, 2013 at 12:53 PM, Mark Miller wrote: > > On May 15, 2013, at 12:26 PM, Jared Rodriguez > wrote:

Re: Using the Collections API

2013-05-15 Thread Mark Miller
On May 15, 2013, at 12:26 PM, Jared Rodriguez wrote: > the cores in the collection stay offline even if there are no > material changes. I've used reload - if you are having trouble with it, please post more details or file a JIRA issue. - Mark

Re: Using the Collections API

2013-05-15 Thread Jared Rodriguez
I have used both and they seem to work well for basic operations - create, delete, etc. Although newer operations like reload do not function as they should - the cores in the collection stay offline even if there are no material changes. On Wed, May 15, 2013 at 6:53 AM, A.Eibner wrote: > Hi,

Re: Using the Collections API

2013-05-15 Thread Shawn Heisey
On 5/15/2013 4:53 AM, A.Eibner wrote: > 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 ? For my little SolrCloud install using 4.2.1, I have used the collections API exclusively.

Re: Using the Collections API

2013-05-15 Thread 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 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 ? > > Becaus