Created
December 10, 2013 19:29
-
-
Save niccolox/7896639 to your computer and use it in GitHub Desktop.
clean nutch solr hdfs temp for www.BigDataDrupal.org
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nutch hdfs clean | |
echo "clean nutch solr hdfs temp" | |
#!/bin/bash | |
sudo -u hdfs hadoop fs -rm -R -skipTrash /user/pseudo/nutch/crawls | |
sudo -u hdfs hadoop fs -rm -R -skipTrash /user/hdfs/generate* | |
sudo -u hdfs hadoop fs -rm -R -skipTrash /user/hdfs/inject* | |
sudo -u hdfs hadoop fs -rm -R -skipTrash /user/hdfs/link* | |
sudo -u hdfs hadoop fs -rm -R -skipTrash /user/hdfs/tmp* | |
sudo -u hdfs hadoop fs -rm -R -skipTrash /user/hdfs/.staging/job* | |
curl http://searcher.server.ltd:8088/solr/somesolr/update?stream.body=%3Cdelete%3E%3Cquery%3E*:*%3C/query%3E%3C/delete%3E | |
curl http://searcher.server.ltd:8088/solr/somesolr/update?stream.body=%3Ccommit/%3E |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment