Again, why are you using ...admin/cores rather than admin/collections?

See:
http://wiki.apache.org/solr/SolrCloud#Managing_collections_via_the_Collections_API

Best
Erick


On Tue, Aug 13, 2013 at 5:00 AM, Prasi S <prasi1...@gmail.com> wrote:

> I create a collection prior to tomcat startup.
>
> -->java -classpath .;zoo-lib/* org.apache.solr.cloud.ZkCLI -cmd upconfig
> -zkhost localhost:2181 -confdir solr-conf -confname solrconf1
>
> -->java -classpath .;zoo-lib/* org.apache.solr.cloud.ZkCLI -cmd linkconfig
> -zkhost 127.0.0.1:2181 -collection firstcollection -confname solrconf1
> -solrhome ../solr_instances/solr
>
> 1. Start Zookeeper server
> 2. Link the configuaration to the collection
> 3. Check those in ZooClient
> 4. Start tomcats
> 5. Create cores and assign to collections.
>
>
> http://localhost:8080/solr/admin/cores?action=CREATE&name=mycore_sh1&collection=firstcollection&shard=shard1
>
> Are these ok or am I making a mistake?
>
>
> On Mon, Aug 12, 2013 at 6:49 PM, Erick Erickson <erickerick...@gmail.com
> >wrote:
>
> > Why are you using the core creation commands rather than the
> > collection commands? The latter are intended for SolrCloud...
> >
> > Best
> > Erick
> >
> >
> > On Mon, Aug 12, 2013 at 4:51 AM, Prasi S <prasi1...@gmail.com> wrote:
> >
> > > Hi,
> > > I have setup solrcloud in solr 4.4, with 2 solr's in 2 tomcat servers
> and
> > > Zookeeper.
> > >
> > > I setup Zookeeper with a collection "firstcollection" and then i give
> the
> > > belwo command
> > >
> > >
> > >
> >
> http://localhost:8080/solr/admin/cores?action=CREATE&name=mycore_sh1&collection=firstcollection&shard=shard1
> > >
> > > Similarly, i create 4 shards. 2 shard in the first instance and two
> > shards
> > > in the second instance.
> > >
> > > When i index files to
> > >
> >
> http://localhost:8080/solr/firstcollection/dataimport?command=full-import,
> > > the data always gets indexed to the shard1.
> > >
> > > There are no documents in shard2, 3 ,4. I checked this with
> > >
> > > http://localhost:8080/solr/firstcollection/select?q=*:*&fl=[shard]
> > >
> > > But searching across any of the two gives full results. It this a
> problem
> > > with 4.4 version.
> > >
> > > Similar scenario , i have tested in solr 4.0 and itr was working fine.
> > >
> > > Pls help.
> > >
> >
>

Reply via email to