Support Questions

Find answers, ask questions, and share your expertise

Unable to Create Solr Collection

avatar
Expert Contributor

I tried to delete the collection using the below command

 

solrctl --zk ${ZOOKEEPER_CONNECT} collection --delete COLLECTION_NAME;

 

while issued the command it takes more than 10 mins. so I given force exit with key ctrl+c

 

When i checking the solr Admin console. I found like the collection was deleted.there is no entry in the core Selector

 

But when i checked with solrctrl command i found like entry is there for the collection.

 

solrctl --zk ${ZOOKEEPER_CONNECT} collection --list

 

it seems like ZOOKEEPER somewhere storing the collection information.

 

and then i tried to create the collection with the command

 

solrctl --zk ${ZOOKEEPER_CONNECT} collection --create COLLECTION_NAME -s 2 -r 2

 

It gets hanged with the command . its does not thrown any error. it keeps on running with  no reponse.

1 ACCEPTED SOLUTION

avatar
Expert Contributor

I solved this issue by simply restarting the Solr from cloudera manager.

View solution in original post

2 REPLIES 2

avatar
Expert Contributor

I solved this issue by simply restarting the Solr from cloudera manager.

avatar
Rising Star

Were you running the above commands from one of the solr nodes or the node which had the solr gateway on it?

Did you have any solr node down when you were deleting or creating a collection as taking time issue can happen that time?

Did you see any unexpected exits with solr like out of memory issues?

 

As taking the time can either happen when no solr gateway but that time it will throw some error after a certain time.

 

or if you had any shard down for the collection you were trying to delete then restart may have helped with that.