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.

Unable to delete solr indexes

Solved Go to solution

Unable to delete solr indexes

Contributor

Hi There,

I am getting below error on my solr web UI on HDP 2.6.0 Cluster.

org.apache.solr.common.SolrException: Exception writing document id fb076ca8-9261-4715-990f-f563da0a02ed-1857434654 to the index; possible analysis error: number of documents in the index cannot exceed 2147483519
	at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:173)
	at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory

so I tried to delete all solr indexes using below command

curl http://LocalHost:8886/solr/update?commit=true -H "Content-type: text/xml"--data-binary '<delete><query>*:*</query></delete>'

but unable to delete the indexes and getting below error

url: (6) Couldn't resolve host '<delete><query>*:*<

Is there any alternative way to delete solr indexes completely or can we define the TTL to delete the solr indexes/data at a regular interval basis?

Please assist.

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Unable to delete solr indexes

Super Guru

@Samant Thakur

Try without keeping space between Content-type: text/xml

curl http://localhost:8886/solr/update?commit=true -H "Content-type:text/xml"--data-binary '<delete><query>*:*</query></delete>'
3 REPLIES 3

Re: Unable to delete solr indexes

Super Guru

@Samant Thakur

Try without keeping space between Content-type: text/xml

curl http://localhost:8886/solr/update?commit=true -H "Content-type:text/xml"--data-binary '<delete><query>*:*</query></delete>'

Re: Unable to delete solr indexes

Super Guru

@Samant Thakur

Check which version of curl are you using if it is older version then update to new version and run the curl again.

Some useful links regarding are as follows link1 link2

Re: Unable to delete solr indexes

Contributor

Thanks a lot @Shu,

I am getting below error now

curl: (35) SSL connect error

are you aware about error?

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