Command to delete a particular solr collection :-
Example:-
curl "http://<SOLR-HOSTNAME>:8886/solr/audit_logs/update?commit=true" -H "Content-Type: text/xml" --data-binary "<delete><query>evtTime:[* TO NOW-7DAYS]</query></delete>"
In this example,
audit_logs - is the collection name.
TO NOW-7DAYS - Will delete the data older than 7 days.
Subscribe to:
Post Comments (Atom)
Boost Your Download Speed with lftp Segmentation
Looking for a faster way to download files via sftp to a Linux machine? Try using "lftp" instead. This tool offers segmented downl...
Other relevant topics
-
Over the period of time, Ambari performance gets slower especially when the cluster is big (100+ nodes). To improve it we can purge the o...
-
Hive metastore DB Connection verification from Command line:- You can run the following on any node where ambari agent installed on the ...
-
DistCp (distributed copy) is a tool generally used for large inter/intra-cluster copying in hadoop. But it can also be used to copy the f...
No comments:
Post a Comment