<div dir="ltr">Cobalt uses the environment variable in the way it allocates compute blocks: bootable vs non-bootable. --Ketan</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 8, 2015 at 2:02 PM, Mihael Hategan <span dir="ltr"><<a href="mailto:hategan@mcs.anl.gov" target="_blank">hategan@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Let me rephrase the question. What entity uses this environment<br>
variable?<br>
<br>
</span>Mihael<br>
<span class="im HOEnZb"><br>
On Fri, 2015-05-08 at 13:34 -0500, Ketan Maheshwari wrote:<br>
</span><div class="HOEnZb"><div class="h5">> Hi Mihael,<br>
><br>
> I am trying to pass an environment variable at the qsub level.<br>
><br>
> In the Swift source, CobalExecutor.java, I find the following code as part<br>
> of qsub commandline builder:<br>
><br>
> Collection<String> names = getSpec().getEnvironmentVariableNames();<br>
> if (names != null && names.size() > 0) {<br>
> result.add("--env");<br>
> StringBuffer sb = new StringBuffer();<br>
> Iterator<String> i = names.iterator();<br>
> while (i.hasNext()) {<br>
> String name = i.next();<br>
> sb.append(name);<br>
> sb.append('=');<br>
> sb.append(quote(getSpec().getEnvironmentVariable(name)));<br>
> if (i.hasNext()) {<br>
> sb.append(':');<br>
> }<br>
> }<br>
> result.add(sb.toString());<br>
><br>
> I am wondering how to add my environment variable to this list.<br>
><br>
> --<br>
> Ketan<br>
><br>
><br>
> On Fri, May 8, 2015 at 1:18 PM, Mihael Hategan <<a href="mailto:hategan@mcs.anl.gov">hategan@mcs.anl.gov</a>> wrote:<br>
><br>
> > Are you trying to pass an environment variable to an app or to the<br>
> > worker?<br>
> ><br>
> > Mihael<br>
> ><br>
> > On Fri, 2015-05-08 at 13:00 -0500, Ketan Maheshwari wrote:<br>
> > > Hi,<br>
> > ><br>
> > > Question about the cobalt provider with 0.96: how to set an environment<br>
> > so<br>
> > > that it ends up on the qsub line:<br>
> > ><br>
> > > qsub --env MY_ENV=true ...<br>
> > ><br>
> > > I tried to add the env.MY_ENV line under site.cluster<br>
> > > and site.cluster.execution.options but to no avail.<br>
> > ><br>
> > > From logs of my current runs, I see that the qsub line contains one<br>
> > > environment variable:<br>
> > ><br>
> > > qsub --env WORKER_LOGGING_LEVEL=NONE --mode script --proccount 32 ...<br>
> > ><br>
> > > but I do not see it being specified anywhere in my conf file.<br>
> > ><br>
> > > Thanks for any suggestions.<br>
> > ><br>
> > > --<br>
> > > Ketan<br>
> > > _______________________________________________<br>
> > > Swift-devel mailing list<br>
> > > <a 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>
> > Swift-devel mailing list<br>
> > <a 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>
Swift-devel mailing list<br>
<a 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>
</div></div></blockquote></div><br></div>