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. Want to know more about what has changed? Check out the Community News blog.

Unable to Create Solr Collection

SOLVED Go to solution

Unable to Create Solr Collection

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

Accepted Solutions

Re: Unable to Create Solr Collection

Contributor

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

2 REPLIES 2

Re: Unable to Create Solr Collection

Contributor

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

Re: Unable to Create Solr Collection

Contributor

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.