Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

solr showing schema.xml file of other collection

Solved Go to solution

solr showing schema.xml file of other collection

Contributor

Hi All,

 

         Recently I faced a issue of indexing and searching a data from the collection. So went to see the schema.xml file from the solr admin console and noticied that the schema.xml has been changed and it was another collection schema.xml it showing in the admin console for the collection. I was really shocked and i really dont know how it was happened. 

 

         And fortunatly data is not deleted. kindly help to revert back the schema.xml of that collection and make the collection querable and indexable.

 

Please help me since it is very urgent

 

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: solr showing schema.xml file of other collection

Contributor

I solved this issue by updating correct config files using the below commands.

 

 

solrctl --zk ${ZOOKEEPER_CONNECT} instancedir --update collection_name ${WORKINGDIR}/collectionIndex

 

solrctl --zk ${ZOOKEEPER_CONNECT} collection --reload collection_name

1 REPLY 1

Re: solr showing schema.xml file of other collection

Contributor

I solved this issue by updating correct config files using the below commands.

 

 

solrctl --zk ${ZOOKEEPER_CONNECT} instancedir --update collection_name ${WORKINGDIR}/collectionIndex

 

solrctl --zk ${ZOOKEEPER_CONNECT} collection --reload collection_name

Don't have an account?
Coming from Hortonworks? Activate your account here