<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi Justin,</span></div><div><br><span></span></div><div><span>I already tried this too. This works for me as well.</span></div><div><br><span></span></div><div><span>It did not work when I un-commented the last line.<br></span></div><div><br><span></span></div><div><span>Thank you</span></div><div><span>Emalayan<br></span></div><div><br></div> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Justin M Wozniak <wozniak@mcs.anl.gov><br> <b><span style="font-weight: bold;">To:</span></b> Emalayan Vairavanathan <svemalayan@yahoo.com> <br><b><span style="font-weight:
bold;">Cc:</span></b> Jonathan Monette <jonmon@mcs.anl.gov>; matei <matei@ece.ubc.ca>; "swift-devel@ci.uchicago.edu" <swift-devel@ci.uchicago.edu>; MosaStore <mosastore@googlegroups.com> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, 22 March 2012 2:56 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Swift-devel] Issues with Montage & Swift-CDM<br> </font> </div> <br><br>Ok, I can run the whole workflow with fs.data:<br><br>rule .*raw_dir.* DIRECT /home/emalayan/app/montage-swift-cdm/SwiftMontage/scripts<br>rule .*header.hdr.* DIRECT /home/emalayan/app/montage-swift-cdm/SwiftMontage/scripts<br># rule .*.* DIRECT /tmp/local<br><br>I am now going to uncomment the last line...<br><br>Emalayan, can you try to run that and see what happens?<br><br>On Thu, 22 Mar 2012, Emalayan Vairavanathan wrote:<br><br>> Thank you Jon. I am using swift-0.93 (this is in our Cluster). So I do not need to
check for garbage-collector errors.<br>><br>> I forgot to mention one point about concurrent mappers. The pipeline swift benchmark I wrote uses concurrent mapper too. Last week I ran the benchmark successfully regardless of the concurrent mappers location (I tried various location for concurrent mappers). So I guess the location of the concurrent mappers wont be an issue.<br>><br>> Thank you<br>> Emalayan<br>><br>><br>><br>> ________________________________<br>> From: Jonathan Monette <<a ymailto="mailto:jonmon@mcs.anl.gov" href="mailto:jonmon@mcs.anl.gov">jonmon@mcs.anl.gov</a>><br>> To: Emalayan Vairavanathan <<a ymailto="mailto:svemalayan@yahoo.com" href="mailto:svemalayan@yahoo.com">svemalayan@yahoo.com</a>> <br>> Cc: Justin M Wozniak <<a ymailto="mailto:wozniak@mcs.anl.gov" href="mailto:wozniak@mcs.anl.gov">wozniak@mcs.anl.gov</a>>; matei <<a ymailto="mailto:matei@ece.ubc.ca"
href="mailto:matei@ece.ubc.ca">matei@ece.ubc.ca</a>>; "<a ymailto="mailto:swift-devel@ci.uchicago.edu" href="mailto:swift-devel@ci.uchicago.edu">swift-devel@ci.uchicago.edu</a>" <<a ymailto="mailto:swift-devel@ci.uchicago.edu" href="mailto:swift-devel@ci.uchicago.edu">swift-devel@ci.uchicago.edu</a>>; MosaStore <<a ymailto="mailto:mosastore@googlegroups.com" href="mailto:mosastore@googlegroups.com">mosastore@googlegroups.com</a>> <br>> Sent: Thursday, 22 March 2012 2:45 PM<br>> Subject: Re: [Swift-devel] Issues with Montage & Swift-CDM<br>> <br>><br>> I'll run with those rules. I saw the garbage collection exception in the log file. The exception may be causing no harm, but it probably shouldn't be throwing an exception at all so this may help fix it in trunk.<br>><br>> But it just occurred to me, which swift are you using again? I am running with the copy I grabbed from Justin's directory.
Are you running that as well or with 0.93? If with 0.93 you will not see that exception because that version does not have the swift garbage collector so we should not waste time with that exception.<br>><br>> On Mar 22, 2012, at 4:40 PM, Emalayan Vairavanathan wrote:<br>><br>> Hi Jon,<br>>><br>>><br>>> Thank you for you suggestions. By the way can you try to run motage with the CDM rules below and see whether the problem is with concurrent mapper and not because of location dependency ?<br>>><br>>><br>>><br>>> rule .*raw_dir.* DIRECT /home/emalayan/App/montage-swift-cdm/SwiftMontage/scripts<br>>> rule .*header.hdr.* DIRECT /home/emalayan/App/montage-swift-cdm/SwiftMontage/scripts/<br>>> rule .*final.* DIRECT <br>> /home/emalayan/App/montage-swift-cdm/SwiftMontage/scripts/<br>>> rule .*.* DIRECT /tmp/local<br>>><br>>><br>>> Meantime I will
run the montage again and see whether swift garbage-collector throws some error.<br>>><br>>><br>>> Please let me know if you have a better idea to debug the problem.<br>>><br>>><br>>><br>>> Thank you<br>>> Emalayan<br>>><br>>><br>>><br>>> ________________________________<br>>> From: Jonathan Monette <<a ymailto="mailto:jonmon@mcs.anl.gov" href="mailto:jonmon@mcs.anl.gov">jonmon@mcs.anl.gov</a>><br>>> To: Emalayan Vairavanathan <<a ymailto="mailto:svemalayan@yahoo.com" href="mailto:svemalayan@yahoo.com">svemalayan@yahoo.com</a>> <br>>> Cc: Justin M Wozniak <<a ymailto="mailto:wozniak@mcs.anl.gov" href="mailto:wozniak@mcs.anl.gov">wozniak@mcs.anl.gov</a>>; matei <<a ymailto="mailto:matei@ece.ubc.ca" href="mailto:matei@ece.ubc.ca">matei@ece.ubc.ca</a>>; "<a ymailto="mailto:swift-devel@ci.uchicago.edu"
href="mailto:swift-devel@ci.uchicago.edu">swift-devel@ci.uchicago.edu</a>" <<a ymailto="mailto:swift-devel@ci.uchicago.edu" href="mailto:swift-devel@ci.uchicago.edu">swift-devel@ci.uchicago.edu</a>>; MosaStore <<a ymailto="mailto:mosastore@googlegroups.com" href="mailto:mosastore@googlegroups.com">mosastore@googlegroups.com</a>> <br>>> Sent: Thursday, 22 March 2012 2:20 PM<br>>> Subject: Re: [Swift-devel] Issues with Montage & Swift-CDM<br>>> <br>>><br>>> So I was able to run it on surveyor and it completed. I see those same SetFielfValue lines but I don't think that is an issue. That is just because I declare an array called projected_images and fill it up inside another function with files I used the regexp mapper on. However I do see the Swift garbage collector kicking in and throwing exceptions:<br>>><br>>><br>>> 2012-03-22 20:58:03,070+0000 INFO
FileGarbageCollector Failed to clean file://localhost/_concurrent/back_struct-d10301cf-5be0-4918-b0c2-49be758cf53a-7-array//elt-2.-field/b<br>>> java.lang.RuntimeException: org.globus.cog.abstraction.impl.file.FileNotFoundException: _concurrent/back_struct-d10301cf-5be0-4918-b0c2-49be758cf53a-7-array//elt-2.-field/b not found.<br>>> at org.griphyn.vdl.mapping.AbsFile.clean(AbsFile.java:191)<br>>> at org.griphyn.vdl.mapping.file.FileGarbageCollector.run(FileGarbageCollector.java:115)<br>>><br>>><br>>><br>>><br>>> I am not sure if that may be causing problems for when Emalayan tries to run with CDM.<br>>><br>>><br>>> Emalayan, it does not look like those scripts expect files to be in a certain location, at least that is not what is intended. In the main swiftscript, when you call the other functions you pass the directory name you want the intermediate files to be stored in.
Then in the SwiftMontage_Batch functions it uses those directories you passed to map input/output files. The only things that are expected to be in certain places are the raw_dir and header.hdr. Those have to be in the pwd. However I will continue debugging to make sure those assumptions I made are holding.<br>>><br>>><br>>> As to the different cdm setups, I do use the concurrent mapper(files that get dumped to _concurrent) where swift decides on the names. I did this for a couple files that I did not care what they were named and they were small enough that I didn't care if they were staged in/out or not. CDM may not like that. Perhaps Swift expects those _concurrent files in a certain place but you told CDM to put them someplace different. I am not sure, that is just a hypothesis. I can always change the scripts to not use the concurrent mapper and use a better mapper for
the CDM rules if that turns out to be the case.<br>>><br>>><br>>> On Mar 22, 2012, at 4:02 PM, Emalayan Vairavanathan wrote:<br>>><br>>> Hi Justin,<br>>>><br>>>><br>>>> For me the setup in /home/emalayan/app/montage-swift-cdm/SwiftMontage/scripts works.<br>>>><br>>>><br>>>><br>>>> I tried onlogin2.surveyor with the swift binaries located in /home/wozniak/Public/swift/bin/swift<br>>>><br>>>><br>>>> May be you are using a different swift version or may be a different login machine. <br>>>><br>>>><br>>>><br>>>> Thank you<br>>>> Emalayan<br>>>><br>>>><br>>>><br>>>><br>>>> ________________________________<br>>>> From: Justin M Wozniak <<a ymailto="mailto:wozniak@mcs.anl.gov"
href="mailto:wozniak@mcs.anl.gov">wozniak@mcs.anl.gov</a>><br>>>> To: Jonathan Monette <<a ymailto="mailto:jonmon@mcs.anl.gov" href="mailto:jonmon@mcs.anl.gov">jonmon@mcs.anl.gov</a>> <br>>>> Cc: Emalayan Vairavanathan <<a ymailto="mailto:svemalayan@yahoo.com" href="mailto:svemalayan@yahoo.com">svemalayan@yahoo.com</a>>; matei <<a ymailto="mailto:matei@ece.ubc.ca" href="mailto:matei@ece.ubc.ca">matei@ece.ubc.ca</a>>; "<a ymailto="mailto:swift-devel@ci.uchicago.edu" href="mailto:swift-devel@ci.uchicago.edu">swift-devel@ci.uchicago.edu</a>" <<a ymailto="mailto:swift-devel@ci.uchicago.edu" href="mailto:swift-devel@ci.uchicago.edu">swift-devel@ci.uchicago.edu</a>>; MosaStore <<a ymailto="mailto:mosastore@googlegroups.com" href="mailto:mosastore@googlegroups.com">mosastore@googlegroups.com</a>> <br>>>> Sent: Thursday, 22 March 2012 1:49 PM<br>>>> Subject: Re: [Swift-devel] Issues with
Montage & Swift-CDM<br>>>> <br>>>><br>>>> This run had no CDM<br>> file.<br>>>><br>>>> On Thu, 22 Mar 2012, Jonathan Monette wrote:<br>>>><br>>>>> Was that with CDM in your run? I am going to take a look too as to why that is showing up.<br>>>>><br>>>>><br>>>>> On Mar 22, 2012, at 3:42 PM, Justin M Wozniak wrote:<br>>>>><br>>>>>><br>>>>>> Ok, I can get it started but I get:<br>>>>>><br>>>>>> 2012-03-22 20:24:06,048+0000 INFO SetFieldValue Set: projected_images[0]=null<br>>>>>> 2012-03-22 20:24:06,049+0000 INFO SetFieldValue Set: projected_images[6]=null<br>>>>>> 2012-03-22 20:24:06,050+0000 INFO SetFieldValue Set: projected_images[7]=null<br>>>>>><br>>>>>> resulting
in:<br>>>>>><br>>>>>> File not found: /gpfs/home/wozniak/SwiftMontage/scripts/./proj_dir/null<br>>>>>><br>>>>>> This looks like a Swift bug. However, do you guys have an existing workaround?<br>>>>>><br>>>>>> Thanks<br>>>>>><br>>>>>> On Thu, 22 Mar 2012, Emalayan<br>> Vairavanathan wrote:<br>>>>>><br>>>>>>> Hi Justin,<br>>>>>>><br>>>>>>> Please use ./run_local.sh to run the montage without cdm locally on the headnode.<br>>>>>>><br>>>>>>><br>>>>>>> The rest of the scripts (run-workers.sh, run.sh, run-swift.sh, main.sh) are written to run experiments in our cluster and wont work in Surveyor.<br>>>>>>> Please let me know if you have
questions.<br>>>>>>><br>>>>>>> Thank you<br>>>>>>> Emalayan<br>>>>>>> ________________________________<br>>>>>>> From: Justin M Wozniak <<a ymailto="mailto:wozniak@mcs.anl.gov" href="mailto:wozniak@mcs.anl.gov">wozniak@mcs.anl.gov</a>><br>>>>>>> To: Emalayan Vairavanathan <<a ymailto="mailto:svemalayan@yahoo.com" href="mailto:svemalayan@yahoo.com">svemalayan@yahoo.com</a>> Cc: "<a ymailto="mailto:swift-devel@ci.uchicago.edu" href="mailto:swift-devel@ci.uchicago.edu">swift-devel@ci.uchicago.edu</a>" <<a ymailto="mailto:swift-devel@ci.uchicago.edu" href="mailto:swift-devel@ci.uchicago.edu">swift-devel@ci.uchicago.edu</a>>; MosaStore <<a ymailto="mailto:mosastore@googlegroups.com" href="mailto:mosastore@googlegroups.com">mosastore@googlegroups.com</a>>; matei <<a ymailto="mailto:matei@ece.ubc.ca"
href="mailto:matei@ece.ubc.ca">matei@ece.ubc.ca</a>> Sent: Thursday, 22 March 2012 11:54 AM<br>>>>>>> Subject: Re: [Swift-devel] Issues with Montage & Swift-CDM<br>>>>>>> On Wed, 21 Mar 2012, Emalayan Vairavanathan wrote:<br>>>>>>><br>>>>>>>> But I just setup everything on Surveyor and it works locally on the head node. You can find the setup here.<br>>>>>>>> /home/emalayan/app/montage-swift-cdm/SwiftMontage/scripts<br>>>>>>><br>>>>>>> What is the entry<br>> point?<br>>>>>>><br>>>>>>> Are we missing common.sh?<br>>>>>>><br>>>>>>> -- Justin M<br>> Wozniak<br>>>>>><br>>>>>> --<br>>>>>> Justin M
Wozniak_______________________________________________<br>>>>>> Swift-devel mailing list<br>>>>>> <a ymailto="mailto:Swift-devel@ci.uchicago.edu" href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>>>>>> <a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>>>>><br>>>>><br>>>><br>>>> -- <br>>>> Justin M Wozniak<br>>>><br>>>><br>>>><br>>><br>>><br>>><br><br>-- <br>Justin M Wozniak<br><br> </div> </div> </div></body></html>