Hi, I'm trying to set up a multicore SolrCloud on HDFS. I am getting the following error for all my cores when trying to start the server:
ERROR org.apache.solr.core.CoreContainer – Unable to create core: <core name> org.apache.solr.common.SolrException: Schema Parsing Failed: unknown field 'id'. Schema file is solr/<core name>/schema.xml at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:618) at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:166) at org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:55) at org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:69) at org.apache.solr.core.ZkContainer.createFromZk(ZkContainer.java:243) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:595) at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:258) at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:250) at java.util.concurrent.FutureTask.run(FutureTask.java:273) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:482) at java.util.concurrent.FutureTask.run(FutureTask.java:273) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1176) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:853) Caused by: java.lang.RuntimeException: unknown field 'id' at org.apache.solr.schema.IndexSchema.getIndexedField(IndexSchema.java:340) at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:536) ... 13 more There is nothing wrong with the declaration of the 'id' field, and I have it working fine when it's not using SolrCloud/HDFS. One odd thing is the part that says "Schema file is solr/<core name>/schema.xml", because there is no schema file there. I have no idea where it is getting that path from. All of the schema files are in solr/<core name>/conf/schema.xml. I'm not sure if this is the problem--it must be finding the schema, otherwise how does it know about the 'id' field? I am running it with the following command (with <> fields filled in appropriately): java -DnumShards=2 -Dbootstrap_conf=true -DzkHost=<host>:2181 -Dhost=<host> -DSTOP.PORT=7983 -DSTOP.KEY=key -Dsolr.directoryFactory=HdfsDirectoryFactory -Dsolr.hdfs.confdir=<dir>/hadoop-conf -Dsolr.lock.type=hdfs -Dsolr.hdfs.home=hdfs:///user/pparsons/solrcloud -jar start.jar -- View this message in context: http://lucene.472066.n3.nabble.com/Schema-Parsing-Failed-unknown-field-id-Zookeeper-SolrCloud-tp4160478.html Sent from the Solr - User mailing list archive at Nabble.com.