<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:新細明體
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello SWIFT,<div><br></div><div>I found a solution to the problem. It seems to be working for me in this specific situation so far.</div><div><br></div><div>The solution is to comment out lines 242 through 253 in file "cog/modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/pbs/PBSExecutor.java" and recompile the JAR file "cog-provider-localscheduler-0.4.jar".</div><div><br></div><div>After this change, PBSExecutor would no longer insert the starred lines and it now works on the cluster I'm using</div><div><br></div><div>Hope this may be useful for people who encounter the same issue.</div><div><br></div><div>Thanks!</div><div>Tommy Chen<br><br><div><hr id="stopSpelling">From: baiypwup@hotmail.com<br>To: swift-user@ci.uchicago.edu<br>Subject: SWIFT Generates "incompatible" PBS scripts<br>Date: Thu, 3 Apr 2014 01:28:39 +0800<br><br>
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:新細明體;
}
--></style>
<div dir="ltr"><pre><font size="3" face="Verdana">Hello SWIFT,</font></pre><pre><font size="3" face="Verdana">I have been using SWIFT on two different clusters, it has always been running flawlessly on one of the clusters, but it fails on the second one.
I think I have narrowed down the cause of the problem;
When I have these lines (the 2 lines with stars in the following example) in a generated PBS script,<br></font></pre><pre><font face="Verdana" size="3">[begin example]
#PBS -S /bin/bash
#PBS -N B0402-0012360-0
#PBS -m n
(omitted)
export WORKER_LOGGING_LEVEL=NONE (*)
#PBS -v WORKER_LOGGING_LEVEL (*)
[end example]
The last two lines is causing the PBS to be incompatible with one of the clusters I'm using. When I submit such a script, I get the following error.
[begin Console output]
[cs900601@eric2 scripts]$ qsub PBS4684660157119642383.submit
506530.eric2
** Job deleted, insufficient hours (0 < 96) left in allocation null **
[end Console output]
Clearly, for some reason the qsub on this cluster has "forgotten" every "#PBS" directive prior to the "export" line.
The reason seems to be
1) the cluster I'm using does not support the "-v" switch.
2) Does not accept PBS script whose "#PBS" lines have been "interrupted" by an non PBS directive (the "export" above).
That means, if I am able to make Swift remove the 2 lines during script generation the problem would go away.
So my question is, is it possible to do this through Swift configurations?
I have searched the configuration files but not seem to find a way to do it. The generated script says in the 1st line it's generated by a Java class "by class: class org.globus.cog.abstraction.impl.scheduler.pbs.PBSExecutor</font><span style="font-family:Verdana;font-size:12pt;">".
Is there a way to check out the source of that "</span><font face="Verdana">PBSExecutor" class to see what is adding these two lines with asterisks in the generated script and disable it?
<br></font></pre><pre><font face="Verdana">Thanks!</font></pre><pre><font face="Verdana">Tommy Chen
</font></pre><div id="ecxhaloword-lookup" class="ecxui-widget-content ecxui-draggable"><div id="ecxhaloword-title"><span id="ecxhaloword-word"></span><a id="ecxhaloword-pron" class="ecxhaloword-button" title="?音" target="_blank"></a><audio id="ecxhaloword-audio"></audio><div id="ecxhaloword-control-container"><a id="ecxhaloword-add" class="ecxhaloword-button" title="加入??表" target="_blank"></a><a id="ecxhaloword-remove" class="ecxhaloword-button" title="移出??表" target="_blank"></a><a href="#" id="ecxhaloword-open" class="ecxhaloword-button" title="查看??????" target="_blank"></a><a id="ecxhaloword-close" class="ecxhaloword-button" title="??查?窗" target="_blank"></a></div><br style="clear:both;"></div><div id="ecxhaloword-content"></div></div> </div></div></div> </div></body>
</html>