Created 06-09-2018 09:08 PM
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!
Created 06-09-2018 09:49 PM
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>'
Created 06-09-2018 09:49 PM
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>'
Created 06-09-2018 10:21 PM
Check which version of curl are you using if it is older version then update to new version and run the curl again.
Created 06-09-2018 09:56 PM
Thanks a lot @Shu,
I am getting below error now
curl: (35) SSL connect error
are you aware about error?