Re: Upload core.properties to ZooKeeper
No, this won't work. You do _not_ want to have core.properties on ZK anyway or be identical on each replica, certain values in that file must be unique per replica (e.g. the name) All you command should do would be to create an entry in each core.properties file on each replica like properties=/localpath/core.properties It would not take the local core.properties and put it on each replica. If it does do anything interesting with the file it's either functionality I'm unaware of or a bug. Best, Erick On Thu, May 11, 2017 at 6:18 AM, marotosgwrote: > You can load a core.properties using > "=/localpath/core.properties" > > For instance > http://solrserver:8983/solr/admin/collections?action=CREATE=person=1=2&=person=/localpath/core.properties > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Upload-core-properties-to-ZooKeeper-tp4221259p4334614.html > Sent from the Solr - User mailing list archive at Nabble.com.
Re: Upload core.properties to ZooKeeper
You can load a core.properties using "=/localpath/core.properties" For instance http://solrserver:8983/solr/admin/collections?action=CREATE=person=1=2&=person=/localpath/core.properties -- View this message in context: http://lucene.472066.n3.nabble.com/Upload-core-properties-to-ZooKeeper-tp4221259p4334614.html Sent from the Solr - User mailing list archive at Nabble.com.
Upload core.properties to ZooKeeper
Hi, I am in the process of migrating my master, slave Solr infraestructure to SolrCloud. At the moment I have several cores inside a folder with this structure /MyCores /MyCores/Core1 /MyCores/Core1/conf /MyCores/Core1/core.properties /MyCores/Core2 /MyCores/Core2/conf /MyCores/Core1/core.properties As you can see I have several cores with a core.properties file inside which contain several variables to populate solrconfig.xml and schema.xml. When uploading this info into Zookeeper it fails during the creation of a collection because it's not able to resolve the core.properties variables. Do you have any idea? Is it possible to use core.properties with SolrCloud? Thanks Sergio -- View this message in context: http://lucene.472066.n3.nabble.com/Upload-core-properties-to-ZooKeeper-tp4221259.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Upload core.properties to ZooKeeper
Have you looked at the collections API? It has the ability to set properties against collections. I wonder if that'll achieve the same thing as adding them to core.properties? I've never used it myself, but wonder if it'll solve your issue. Upayavira On Thu, Aug 6, 2015, at 12:35 PM, marotosg wrote: Hi, I am in the process of migrating my master, slave Solr infraestructure to SolrCloud. At the moment I have several cores inside a folder with this structure /MyCores /MyCores/Core1 /MyCores/Core1/conf /MyCores/Core1/core.properties /MyCores/Core2 /MyCores/Core2/conf /MyCores/Core1/core.properties As you can see I have several cores with a core.properties file inside which contain several variables to populate solrconfig.xml and schema.xml. When uploading this info into Zookeeper it fails during the creation of a collection because it's not able to resolve the core.properties variables. Do you have any idea? Is it possible to use core.properties with SolrCloud? Thanks Sergio -- View this message in context: http://lucene.472066.n3.nabble.com/Upload-core-properties-to-ZooKeeper-tp4221259.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Upload core.properties to ZooKeeper
You should be able to use user defined properties within core.properties. However, it sounds like you are uploading core.properties to Zookeeper. In SolrCloud, core.properties is not uploaded to Zookeeper. You place core.properties within your core’s top level directory and the cores are automatically discovered. Your configuration set which includes your solrconfig.xml and schema.xml would be uploaded to Zookeeper. See the following around core discovery and the very last sentence on the page at the first link which speaks to “user defined” properties and the second link which discusses the different ways to use user defined properties. https://cwiki.apache.org/confluence/display/solr/Defining+core.properties https://cwiki.apache.org/confluence/display/solr/Defining+core.properties https://cwiki.apache.org/confluence/display/solr/Configuring+solrconfig.xml#Configuringsolrconfig.xml-SubstitutingPropertiesinSolrConfigFiles https://cwiki.apache.org/confluence/display/solr/Configuring+solrconfig.xml#Configuringsolrconfig.xml-SubstitutingPropertiesinSolrConfigFiles I just tried a quick test and defining a property in core.properties does get picked up and substituted in solrconfig.xml. However, I tried to use solrcore.properties as described at the link above, but it did not work. So you may need to just ensure your config set is uploaded (without core.properties) and make sure your core.properties exist in the root directory of each core with your custom properties. See the section on “Upload a configuration directory” below for how to upload to Zookeeper. https://cwiki.apache.org/confluence/display/solr/Command+Line+Utilities https://cwiki.apache.org/confluence/display/solr/Command+Line+Utilities - Kevin On Aug 6, 2015, at 4:37 AM, Upayavira u...@odoko.co.uk wrote: Have you looked at the collections API? It has the ability to set properties against collections. I wonder if that'll achieve the same thing as adding them to core.properties? I've never used it myself, but wonder if it'll solve your issue. Upayavira On Thu, Aug 6, 2015, at 12:35 PM, marotosg wrote: Hi, I am in the process of migrating my master, slave Solr infraestructure to SolrCloud. At the moment I have several cores inside a folder with this structure /MyCores /MyCores/Core1 /MyCores/Core1/conf /MyCores/Core1/core.properties /MyCores/Core2 /MyCores/Core2/conf /MyCores/Core1/core.properties As you can see I have several cores with a core.properties file inside which contain several variables to populate solrconfig.xml and schema.xml. When uploading this info into Zookeeper it fails during the creation of a collection because it's not able to resolve the core.properties variables. Do you have any idea? Is it possible to use core.properties with SolrCloud? Thanks Sergio -- View this message in context: http://lucene.472066.n3.nabble.com/Upload-core-properties-to-ZooKeeper-tp4221259.html Sent from the Solr - User mailing list archive at Nabble.com.