<div dir="ltr">Hi Shahram,<br><div class="gmail_extra"><br></div><div class="gmail_extra">CC'ing swift-user mailing list, please feel free to subscribe to this mailing list and post for greater visibility and quicker response: <a href="http://swift-lang.org/support/index.php">http://swift-lang.org/support/index.php</a></div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Please see my answers inline below:<br><br><div class="gmail_quote">On Thu, Aug 28, 2014 at 5:40 PM, Shahram Mohrehkesh <span dir="ltr"><<a href="mailto:smohrehk@cs.odu.edu" target="_blank">smohrehk@cs.odu.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">



<div>
<div dir="ltr">
<div>
<div>
<div>Hi Dr. Ketan, <br>
<br>
</div>
I just started using Swift for a project to run some image processing operations on brain images.
<br>
<br>
</div>
I can run swift successfully on my local system. Next, I followed the tutorial on the swift website for clusters. However, I cannot run the swift  for running an application with swift on the cluster. I usually get error "Job failed with an exit code of 127".
 I guess my main problem is with my setting in site.xml file.</div></div></div></blockquote><div><br></div><div>From your description, I understand this is a bag of workstations cluster. The exit code 127 seems most likely because Swift is unable to locate the executable. If you are using a tc.data file, make sure that the executable you point to in the third column of this file exists and is executable on the cluster. Having said this, could you indicate the Swift version you are using and the logs.</div>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div dir="ltr"><div><br></div><div>
1. Is the coaster the appropriate type for site setting to run on a cluster? If so, what are the values of parameters?  What are the mandatory parameters? 
<br clear="all"></div></div></div></blockquote><div><br></div><div>Yes, coasters are well suited to run on a cluster. The parameters will depend upon the type of cluster you are on: if the nodes are behind a resource manager (eg. PBS, SLURM etc.) or not. Most parameters have default values but I suppose the execution and filesystem providers, handle name, and workdirectory location are mandatory (others on swift-user may correct me). Please see typical sites files attached. Also see this guide to know more about sites file config and examples (probably you already saw it): <a href="http://swift-lang.org/guides/trunk/siteguide/siteguide.html" target="_blank">http://swift-lang.org/guides/trunk/siteguide/siteguide.html</a> </div>

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div dir="ltr"><div>
</div>
<div>
<div>
<div>
<div>2. I saw your "Evaluating Cloud Computing for Smart Power Grid Design Using Parallel Scripting". My cluster is very similar to yours and I am planning to run my program later on Amazon cloud. So, if you could provide me your sites.xml file, I would highly
 appreciate it? <br></div></div></div></div></div></div></blockquote><div><br></div><div>Sites files will differ slightly based on your configuration but find the one we used attached if it helps. Also, we have some tutorials developed for running in Amazon cloud, see this: <a href="https://github.com/yadudoc/swift-on-cloud/tree/master/aws">https://github.com/yadudoc/swift-on-cloud/tree/master/aws</a></div>

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div dir="ltr"><div><div><div><div>
</div>
<div>3. Beside the site.xml, is there any other setting that I should change? <br></div></div></div></div></div></div></blockquote><div><br></div><div>There is some one time configuration that needs to be set. It will depend upon the Swift version you are using and the nature of your environment.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div dir="ltr"><div><div><div><div>
<br>
</div>
<div>Regards, <br>
Shahram <br><span><font color="#888888">
</font></span></div><span><font color="#888888">
<div>-- <span style="color:rgb(34,34,34)"> </span></div></font></span></div></div></div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div><div dir="ltr"><div><div><div><span><font color="#888888"><div>
<div dir="ltr">
<div> </div><div>
Shahram Mohrehkesh <br>
PhD Candidate <br>
Computer Science <br>
Old Dominion University <br>
Norfolk, VA <br>
</div>
<div><a href="http://cs.odu.edu/%7Esmohrehk/" target="_blank">http://www.cs.odu.edu/~smohrehk/</a>
<br>
</div>
</div>
</div>
</font></span></div>
</div>
</div>
</div>
</div>

</blockquote></div><br></div><div class="gmail_extra">Best Regards,</div><div class="gmail_extra">Ketan</div><div class="gmail_extra"><br></div></div>