Re: Reloading config to zookeeper
Right. Collection API can be used here. On 18 February 2013 21:36, Timothy Potter thelabd...@gmail.com wrote: @Marcin - Maybe I mis-understood your process but I don't think you need to reload the collection on each node if you use the expanded collections admin API, i.e. the following will propagate the reload across your cluster for you: http://localhost:8983/solr/admin/collections?action=RELOADname=mycollection See http://wiki.apache.org/solr/SolrCloud#Managing_collections_via_the_Collections_API On Mon, Feb 18, 2013 at 1:13 PM, mshirman mshir...@gmail.com wrote: I hope my question is somewhat relevant to the discussion. I'm relatively new to zk/SolrCloud, and I have new environment configured with an ZK ensemble (3 nodes) running with SolrCloud. Things are running, yet I'm puzzled since I can't find the Solr congif data on zookeeper nodes. What is the default location? Thanks in advance! /michael -- View this message in context: http://lucene.472066.n3.nabble.com/Reloading-config-to-zookeeper-tp4021901p4041189.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Reloading config to zookeeper
I hope my question is somewhat relevant to the discussion. I'm relatively new to zk/SolrCloud, and I have new environment configured with an ZK ensemble (3 nodes) running with SolrCloud. Things are running, yet I'm puzzled since I can't find the Solr congif data on zookeeper nodes. What is the default location? Thanks in advance! /michael -- View this message in context: http://lucene.472066.n3.nabble.com/Reloading-config-to-zookeeper-tp4021901p4041189.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Reloading config to zookeeper
@Marcin - Maybe I mis-understood your process but I don't think you need to reload the collection on each node if you use the expanded collections admin API, i.e. the following will propagate the reload across your cluster for you: http://localhost:8983/solr/admin/collections?action=RELOADname=mycollection See http://wiki.apache.org/solr/SolrCloud#Managing_collections_via_the_Collections_API On Mon, Feb 18, 2013 at 1:13 PM, mshirman mshir...@gmail.com wrote: I hope my question is somewhat relevant to the discussion. I'm relatively new to zk/SolrCloud, and I have new environment configured with an ZK ensemble (3 nodes) running with SolrCloud. Things are running, yet I'm puzzled since I can't find the Solr congif data on zookeeper nodes. What is the default location? Thanks in advance! /michael -- View this message in context: http://lucene.472066.n3.nabble.com/Reloading-config-to-zookeeper-tp4021901p4041189.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Reloading config to zookeeper
Right, solrhome is not required for upconfig, just for the bootstrap cmd. You can also just upload modified files, but the tool doesn't really let you do it in a fine grained way. But there are lots of zookeeper tools you can use to do this if you wanted. - Mark On Thu, Nov 22, 2012 at 10:45 AM, Marcin Rzewucki mrzewu...@gmail.com wrote: I think solrhome is not mandatory. Yes, reloading is uploading config dir again. It's a pity we can't update just modified files. Regards. On 22 November 2012 19:38, Cool Techi cooltec...@outlook.com wrote: Thanks, but why do we need to specify the -solrhome? I am using the following command to load new config, java -classpath .:/Users/solr-cli-lib/* org.apache.solr.cloud.ZkCLI -cmd upconfig -zkhost localhost:2181,localhost:2182,localhost:2183,localhost:2184,localhost:2185 -confdir /Users/config-files -confname myconf So basically reloading is just uploading the configs back again? Regard,s Ayush Date: Thu, 22 Nov 2012 19:32:27 +0100 Subject: Re: Reloading config to zookeeper From: mrzewu...@gmail.com To: solr-user@lucene.apache.org Hi, I'm using cloud-scripts/zkcli.sh script for reloading configuration, for example: $ ./cloud-scripts/zkcli.sh -cmd upconfig -confdir config.dir -solrhome solr.home -confname config.name -z zookeeper.host Then I'm reloading collection on each node in cloud, but maybe someone knows better solution. Regards. On 22 November 2012 19:23, Cool Techi cooltec...@outlook.com wrote: When we make changes to our config files, how do we reload the files into zookeeper. Also, I understand that we would need to reload the collection, would we need to do this at a per shard level or just at the cloud level. Regards, Ayush -- - Mark
Re: Reloading config to zookeeper
Hi, I'm using cloud-scripts/zkcli.sh script for reloading configuration, for example: $ ./cloud-scripts/zkcli.sh -cmd upconfig -confdir config.dir -solrhome solr.home -confname config.name -z zookeeper.host Then I'm reloading collection on each node in cloud, but maybe someone knows better solution. Regards. On 22 November 2012 19:23, Cool Techi cooltec...@outlook.com wrote: When we make changes to our config files, how do we reload the files into zookeeper. Also, I understand that we would need to reload the collection, would we need to do this at a per shard level or just at the cloud level. Regards, Ayush
RE: Reloading config to zookeeper
Thanks, but why do we need to specify the -solrhome? I am using the following command to load new config, java -classpath .:/Users/solr-cli-lib/* org.apache.solr.cloud.ZkCLI -cmd upconfig -zkhost localhost:2181,localhost:2182,localhost:2183,localhost:2184,localhost:2185 -confdir /Users/config-files -confname myconf So basically reloading is just uploading the configs back again? Regard,s Ayush Date: Thu, 22 Nov 2012 19:32:27 +0100 Subject: Re: Reloading config to zookeeper From: mrzewu...@gmail.com To: solr-user@lucene.apache.org Hi, I'm using cloud-scripts/zkcli.sh script for reloading configuration, for example: $ ./cloud-scripts/zkcli.sh -cmd upconfig -confdir config.dir -solrhome solr.home -confname config.name -z zookeeper.host Then I'm reloading collection on each node in cloud, but maybe someone knows better solution. Regards. On 22 November 2012 19:23, Cool Techi cooltec...@outlook.com wrote: When we make changes to our config files, how do we reload the files into zookeeper. Also, I understand that we would need to reload the collection, would we need to do this at a per shard level or just at the cloud level. Regards, Ayush
Re: Reloading config to zookeeper
I think solrhome is not mandatory. Yes, reloading is uploading config dir again. It's a pity we can't update just modified files. Regards. On 22 November 2012 19:38, Cool Techi cooltec...@outlook.com wrote: Thanks, but why do we need to specify the -solrhome? I am using the following command to load new config, java -classpath .:/Users/solr-cli-lib/* org.apache.solr.cloud.ZkCLI -cmd upconfig -zkhost localhost:2181,localhost:2182,localhost:2183,localhost:2184,localhost:2185 -confdir /Users/config-files -confname myconf So basically reloading is just uploading the configs back again? Regard,s Ayush Date: Thu, 22 Nov 2012 19:32:27 +0100 Subject: Re: Reloading config to zookeeper From: mrzewu...@gmail.com To: solr-user@lucene.apache.org Hi, I'm using cloud-scripts/zkcli.sh script for reloading configuration, for example: $ ./cloud-scripts/zkcli.sh -cmd upconfig -confdir config.dir -solrhome solr.home -confname config.name -z zookeeper.host Then I'm reloading collection on each node in cloud, but maybe someone knows better solution. Regards. On 22 November 2012 19:23, Cool Techi cooltec...@outlook.com wrote: When we make changes to our config files, how do we reload the files into zookeeper. Also, I understand that we would need to reload the collection, would we need to do this at a per shard level or just at the cloud level. Regards, Ayush