Re: solr 4.3.0 cloud in Tomcat, link many collections to Zookeeper

2013-07-12 Thread Furkan KAMACI
If you have one collection you just need to define hostnames of Zookeeper
ensembles and run that command once.


2013/7/11 Zhang, Lisheng lisheng.zh...@broadvision.com

 Hi,

 We are testing solr 4.3.0 in Tomcat (considering upgrading solr 3.6.1 to
 4.3.0), in WIKI page
 for solrCloud in Tomcat:

 http://wiki.apache.org/solr/SolrCloudTomcat

 we need to link each collection explicitly:

 ///
 8) Link uploaded config with target collection
 java -classpath .:/home/myuser/solr-war-lib/* org.apache.solr.cloud.ZkCLI
 -cmd linkconfig -collection mycollection -confname ...
 ///

 But our application has many cores (a few thousands which all share same
 schema/config,
 is there a moe convenient way ?

 Thanks very much for helps, Lisheng



RE: solr 4.3.0 cloud in Tomcat, link many collections to Zookeeper

2013-07-12 Thread Zhang, Lisheng
Sorry I might not have asked clearly, our issue is that we have 
a few thousand collections (can be much more), so running that 
command is rather tedius, is there a simpler way (all collections 
share same schema/config)?

Thanks very much for helps, Lisheng

-Original Message-
From: Furkan KAMACI [mailto:furkankam...@gmail.com]
Sent: Friday, July 12, 2013 1:17 AM
To: solr-user@lucene.apache.org
Subject: Re: solr 4.3.0 cloud in Tomcat, link many collections to
Zookeeper


If you have one collection you just need to define hostnames of Zookeeper
ensembles and run that command once.


2013/7/11 Zhang, Lisheng lisheng.zh...@broadvision.com

 Hi,

 We are testing solr 4.3.0 in Tomcat (considering upgrading solr 3.6.1 to
 4.3.0), in WIKI page
 for solrCloud in Tomcat:

 http://wiki.apache.org/solr/SolrCloudTomcat

 we need to link each collection explicitly:

 ///
 8) Link uploaded config with target collection
 java -classpath .:/home/myuser/solr-war-lib/* org.apache.solr.cloud.ZkCLI
 -cmd linkconfig -collection mycollection -confname ...
 ///

 But our application has many cores (a few thousands which all share same
 schema/config,
 is there a moe convenient way ?

 Thanks very much for helps, Lisheng



Re: solr 4.3.0 cloud in Tomcat, link many collections to Zookeeper

2013-07-12 Thread Shawn Heisey
On 7/12/2013 7:29 AM, Zhang, Lisheng wrote:
 Sorry I might not have asked clearly, our issue is that we have 
 a few thousand collections (can be much more), so running that 
 command is rather tedius, is there a simpler way (all collections 
 share same schema/config)?

When you create each collection with the Collections API (http calls),
you tell it the name of a config set stored in zookeeper.  You can give
all your collections the same config set if you like.

If you manually create collections with the CoreAdmin API instead, you
must use the zkcli script included in Solr to link the collection to the
config set, which can be done either before or after the collection is
created.  The zkcli script provides some automation for the java command
that you were given by Furkan.

Thanks,
Shawn



RE: solr 4.3.0 cloud in Tomcat, link many collections to Zookeeper

2013-07-12 Thread Zhang, Lisheng
Thanks very much for all the helps!

-Original Message-
From: Shawn Heisey [mailto:s...@elyograg.org]
Sent: Friday, July 12, 2013 7:31 AM
To: solr-user@lucene.apache.org
Subject: Re: solr 4.3.0 cloud in Tomcat, link many collections to
Zookeeper


On 7/12/2013 7:29 AM, Zhang, Lisheng wrote:
 Sorry I might not have asked clearly, our issue is that we have 
 a few thousand collections (can be much more), so running that 
 command is rather tedius, is there a simpler way (all collections 
 share same schema/config)?

When you create each collection with the Collections API (http calls),
you tell it the name of a config set stored in zookeeper.  You can give
all your collections the same config set if you like.

If you manually create collections with the CoreAdmin API instead, you
must use the zkcli script included in Solr to link the collection to the
config set, which can be done either before or after the collection is
created.  The zkcli script provides some automation for the java command
that you were given by Furkan.

Thanks,
Shawn