i copy the 3 schema.xml and solrconfig.xml to $solrhome/conf/xxxx.xml, and
upload this filedir to zk like this:
args="-Xmn1000m -Xms2000m -Xmx2000m -XX:MaxPermSize=384m
-Dbootstrap_confdir=/home/app/workspace/solrcloud/solr/solrhome/conf
-Dcollection.configName=conf -DzkHost=zk1:2181,zk2:2181,zk3:2181
-DnumShards=2 -Dname=docCollection"

then in solr.xml , it changes to:
 <core name="doc" instanceDir="doc/" loadOnStartup="true" transient="false"
collection="docCollection"  schema="s1.xml" config="sc1.xml" />

in this way , the schema.xml is seprated.

it seems the schema and config properties   has a relative path
/configs/conf,
and this is what i uploaded from local,
$solrhome/conf  is equals to /configs/conf.





--
View this message in context: 
http://lucene.472066.n3.nabble.com/in-solrcoud-how-to-assign-a-schemaConf-to-a-collection-tp4057238p4057254.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to