Created
November 15, 2017 14:25
-
-
Save l1x/6aa54930b781f56b6d38a8fd2d8461f1 to your computer and use it in GitHub Desktop.
Delete files that are older than X days
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
COMMAND='hadoop jar /opt/cloudera/parcels/CDH/lib/solr/contrib/mr/search-mr-job.jar org.apache.solr.hadoop.HdfsFindTool' | |
${COMMAND} -find /tmp/ -type f -mtime +30 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment