Added cleaning routine to hadoop job