For anyone who needs to re-organize your OODT Archive I found this little tool to be quite useful.
You can check out the code here: https://svn.apache.org/repos/asf/oodt/trunk/filemgr/src/main/java/org/apache/oodt/cas/filemgr/tools/MetadataBasedProductMover.java I have moved a lot of product using this tool, but I found a minor inconsistency and I wanted to see if this is a bug. You see in the index output listed below the FileLocation doesn't match the newly updated reference_data_store, but it does match the reference_orig path. stored,indexed<CAS.ProductId:413e8ad6-9dd8-11e1-be66-9f8d45bb9efe> stored,indexed<CAS.ProductName:MOD09GA.A2010046.h21v04.005.2010048120042.hdf> stored,indexed<CAS.ProductReceivedTime:2012-05-14T08:19:53.095-07:00> *stored,indexed<FileLocation:/usr/local/snow/data/archive/2010/46/MOD09GA>* stored,indexed<Filename:MOD09GA.A2010046.h21v04.005.2010048120042.hdf> stored,omitNorms<product_type_repoPath:file:///usr/local/snow/data/archive> stored,omitNorms<product_type_versioner:gov.nasa.jpl.snow.versioning.ModisFileVersioner> * stored,omitNorms<reference_data_store:file:/usr/local/snow/data/archive/MOD09GA/2010/46/MOD09GA.A2010046.h21v04.005.2010048120042.hdf> * stored,omitNorms<reference_fileSize:90060629> stored,indexed<reference_mimeType:application/x-hdf> * stored,omitNorms<reference_orig:file:/usr/local/snow/data/archive/2010/46/MOD09GA/MOD09GA.A2010046.h21v04.005.2010048120042.hdf> * So the question I am posing to the list is: Should the FileLocation be kept in-sync with the reference_data_store? If this should happen, then I think the MetadataBasedProductMover should be patched to make this update at the time of the move. Best Regards, Cameron
