Description
Here is schema for field:
<fieldType name="my_stemming" class="solr.TextField"> <analyzer> <tokenizer class="solr.OpenNLPTokenizerFactory" tokenizerModel="en-token.bin" sentenceModel="en-sent.bin"/> <filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.OpenNLPPOSFilterFactory" posTaggerModel="en-pos-maxent.bin"/> <filter class="solr.OpenNLPLemmatizerFilterFactory" dictionary="en-lemmatizer.txt"/> <filter class="solr.KeywordRepeatFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/> <filter class="solr.RemoveDuplicatesTokenFilterFactory"/> </analyzer> </fieldType>
I have configset with all the files(en-token.bin, en-sent.bin, ...) in same directory. Using that configset i can successfully create Solr Core in Standalone mode.
But With Solr cloud (two instances in separate servers orchestrated by zookeeper) i have the same configset in both servers and i try to create a collection, it is throwing me an error which doesn't make any sense to me.
$ bin/solr create -p 8984 -c xyz -n xyz_conf -d xyz_conf ... ERROR: Failed to create collection 'xyz' due to: {example1.com:8984_solr=org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:Error from server at https://example2.com:8984/solr: Error CREATEing SolrCore 'xyz_shard1_replica_n1': Unable to create core [xyz_shard1_replica_n1] Caused by: Can't find resource 'solrconfig.xml' in classpath or '/configs/xyz', cwd=/opt/solr-7.3.1/server}
Note: uploading configset to zookeeper also fails with error
$ bin/solr create -c xyz -n xyz_conf -d xyz_conf ... — ERROR: Error uploading file /opt/solr/server/solr/configsets/xyz/conf/en-pos-maxent.bin to zookeeper path /configs/xyz/en-pos-maxent.bin