Support Questions
Find answers, ask questions, and share your expertise

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

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>'

View solution in original post

3 REPLIES 3

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>'

View solution in original post

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

Contributor

Thanks a lot @Shu,

I am getting below error now

curl: (35) SSL connect error

are you aware about error?