Changeset 27126


Ignore:
Timestamp:
2013-03-26T09:14:31+13:00 (11 years ago)
Author:
jmt12
Message:

Extra clean up commands (like removing cached versions of video processing) and a call to flush_caches.pl to try and clear disk and DNS caches

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/parallel-building/trunk/src/bin/script/hadoop_import.pl

    r27058 r27126  
    7878}
    7979# - clear out the archives regardless
     80print " * Clearing existing archives directory for this collection... ";
    8081if (-e $gs_archives_dir)
    8182{
     
    8586if (&hdfsTest('d', 0, $hdfs_output_dir))
    8687{
    87   print " * Clearing existing archives directory for this collection... ";
    8888  &hdfsCommand('rmr', $hdfs_output_dir);
    89   print "Done!\n";
    9089}
    9190# - clear out any old logs
     
    9392{
    9493  &shellCommand('rm /tmp/greenstone/*.*');
     94  &shellCommand('rm /tmp/gsimport*');
    9595}
    9696if ($is_rocks_cluster)
    9797{
    9898  &shellCommand('rocks run host "rm /tmp/greenstone/*.*"');
    99 }
     99  &shellCommand('rocks run host "rm /tmp/gsimport*"');
     100}
     101print "Done!\n";
     102
     103# - flush DNS cache too, so we are playing on a level field
     104&shellCommand('flush_caches.pl');
     105&shellCommand('rocks run host "flush_caches.pl"');
    100106
    101107# 3. Special case for *Server type infodbs (namely TDBServer and GDBMServer)
     
    187193print " * Cleaning up temporary files... ";
    188194&shellCommand('rm -rf /tmp/greenstone');
     195&shellCommand('rm -rf /tmp/gsimport*');
    189196if ($is_rocks_cluster)
    190197{
    191198  &shellCommand('rocks run host "rm -rf /tmp/greenstone"');
     199  &shellCommand('rocks run host "rm -rf /tmp/gsimport*"');
    192200}
    193201print "Done!\n";
Note: See TracChangeset for help on using the changeset viewer.