[prev in list] [next in list] [prev in thread] [next in thread] 

List:       solr-user
Subject:    Re: solr 4.1 - trying to create 2 collection with 2 different sets of configurations
From:       Anirudha Jadhav <anirudha () nyu ! edu>
Date:       2013-02-28 15:37:47
Message-ID: CAG7XKRi0_QNefP7FJXPJ2=BCLOOgy=Wuo7m=AWXVoFPtiYWHBA () mail ! gmail ! com
[Download RAW message or body]


*1.empty Zookeeper*
*2.empty index directories for solr*
*3.empty solr.xml*
<?xml version="1.0" encoding="UTF-8" ?>
<solr persistent="true">
  <cores adminPath="/admin/cores"
zkClientTimeout="${zkClientTimeout:15000}" hostPort="${jetty.port:}"
hostContext="solr">  </cores>
</solr>
*
3.1 upload / link cfg in zookeeper for test collection*
*4*.* start 4 solr servers on different machines*
*5. Access server* : i see
<There are no SolrCores running — for the current functionality we require
at least one SolrCore, sorry :)> that's ok

*6. CREATE collection*
http://hostname:15000/solr/admin/collections?action=CREATE&name=test&numShards=1&replicationFactor=4

this creates one core on each server with one shard named
- test_shard1_replica1
- test_shard1_replica2
- test_shard1_replica3
- test_shard1_replica4
and persists it in solr.xml on each server.

---
REPEAT steps 3-6 to create new collections. We use this a lot with 4.1
Note: each collect needs a different solrHOME dir with its own solr.xml


On Thu, Feb 28, 2013 at 10:25 AM, Mark Miller <markrmiller@gmail.com> wrote:

>
> On Feb 28, 2013, at 9:41 AM, Shankar Sundararaju <shankar@ebrary.com>
> wrote:
>
> > did having the config name same as collection name allow you to
> > create collections without having to link the corresponding config
> names? I
> > did not try this myself.
>
> It should work that way or there is a bug.
>
> - Mark
>
>


-- 
Anirudha P. Jadhav


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic