<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Alexey Bokov's weblog &#187; SGE</title>
	<atom:link href="http://bokov.net/weblog/tag/sge/feed/" rel="self" type="application/rss+xml" />
	<link>http://bokov.net/weblog</link>
	<description>Anything that interests me</description>
	<lastBuildDate>Fri, 11 Nov 2011 12:32:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>SGE 6.2u4 &#8211; new update from Regensburg</title>
		<link>http://bokov.net/weblog/useful-links/sge-6-2u4-new-update-from-regensburg/</link>
		<comments>http://bokov.net/weblog/useful-links/sge-6-2u4-new-update-from-regensburg/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 09:01:23 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[compute grid]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[useful links]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[hedeby]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[SGE]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[Sun Grid Engine]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=302</guid>
		<description><![CDATA[If anyone interested in it &#8211; here&#8217;s new update for Sun Grid Engine 6.2 &#8211; update 4. It almost about bug fixing and man&#8217;s changes &#8211; list of changes is here. Sources&#8217; tag for CVS is V62u4_TAG (make sense for Grid Engine, ARCo, SGE Inspect ), by the way as I know Hedeby is still [...]]]></description>
			<content:encoded><![CDATA[<p>If anyone interested in it &#8211; here&#8217;s new update for Sun Grid Engine  6.2 &#8211; update 4. It almost about bug fixing and man&#8217;s changes &#8211; list of changes is <a href="http://gridengine.sunsource.net/project/gridengine/62patches.txt">here</a>. <a href="http://gridengine.sunsource.net/source/browse/gridengine">Sources&#8217; tag</a> for CVS is  V62u4_TAG (make sense for Grid Engine, ARCo, SGE Inspect ), by the way as I know <a href="http://hedeby.sunsource.net">Hedeby</a> is still 1.0u3.</p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/useful-links/sge-6-2u4-new-update-from-regensburg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using SDM to managing OpenSolaris zones</title>
		<link>http://bokov.net/weblog/ec2/using-sdm-to-managing-opensolaris-zones/</link>
		<comments>http://bokov.net/weblog/ec2/using-sdm-to-managing-opensolaris-zones/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 08:03:44 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[compute grid]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[compute cloud]]></category>
		<category><![CDATA[Elastic Compute Cloud]]></category>
		<category><![CDATA[hedeby]]></category>
		<category><![CDATA[qconf]]></category>
		<category><![CDATA[SGE]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=240</guid>
		<description><![CDATA[Sun Grid Engine&#8217;s top engineer Richard Hierlmeier wrote article ( and some bash scripts which implements it &#8211; btw why you not to put it them onto your cvs? ) about using SDM in compute cloud ( here&#8217;s EC2 as example, I suppose that GoGrid can be used also without too many changes ) &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>Sun Grid Engine&#8217;s top engineer Richard Hierlmeier  wrote article ( and some <a href=http://blogs.sun.com/rhierlmeier/resource/zones-script-0.1.tar.gz>bash scripts which implements it</a> &#8211; btw why you not to put it them onto your cvs? ) about using SDM  in compute cloud ( here&#8217;s EC2 as example, I suppose that GoGrid can be used also without too many changes ) &#8211; <a href="http://blogs.sun.com/rhierlmeier/entry/using_sdm_cloud_adapter_to">Using SDM Cloud Adapter to Manage Solaris Zones</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/ec2/using-sdm-to-managing-opensolaris-zones/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New version of Sun Grid Engine</title>
		<link>http://bokov.net/weblog/ec2/new-version-of-sun-grid-engine/</link>
		<comments>http://bokov.net/weblog/ec2/new-version-of-sun-grid-engine/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 09:52:32 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[compute grid]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[Elastic Compute Cloud]]></category>
		<category><![CDATA[SGE]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=227</guid>
		<description><![CDATA[Sun released new version of Sun Grid Engine &#8211; 6.2 Update 3. That&#8217;s new: Amazon EC2 adapter &#8211; SDM Cloud Service Adapter now is avaialable to scale SGE cluster in EC2 &#8211; they only need to have OpenVPN installed on instances, and special configuration for IP addresses ( SGE is still very picky about DNS [...]]]></description>
			<content:encoded><![CDATA[<p>Sun released new version of <a href="http://wikis.sun.com/display/gridengine62u3/Release+Notes">Sun Grid Engine &#8211; 6.2 Update 3</a>. That&#8217;s new:</p>
<ul>
<li>Amazon EC2 adapter &#8211; SDM Cloud Service Adapter now is avaialable to scale SGE cluster in EC2 &#8211; they only need to have OpenVPN installed on instances, and special configuration for IP addresses ( SGE is still very picky about DNS ) &#8211; <a href="http://wikis.sun.com/display/gridengine62u3/Prerequisites+and+Restrictions">more about restriction is here</a> and here&#8217;s <a href="http://wikis.sun.com/display/gridengine62u3/Cloud+Adapter+Scripts">bash scripts which used for EC2 deployment</a>. By the way I see that <a href="http://wikis.sun.com/display/gridengine62u3/Sample+AMI">OpenSolaris</a> is still only one OS which available for SGE on EC2, if you&#8217;re looking for some SGE/EC2 solutions you may check out <a href="http://blog.griddynamics.com/2009/05/data-aware-routing-gemstone-gemfire-and.html#links">Convergence proejct</a> which deal with SGE/GemFire cluster installation on EC2 &#8211; see <a href="http://bokov.net/weblog/ec2/installing-sun-grid-engine-on-amazon-ec2/">Installing SGE on EC2</a>, or <a href="http://wiki.gridengine.info/wiki/index.php/SGE-Hedeby-And-Amazon-EC2">Hedeby installation on EC2</a>.</li>
<li>Now only one JVM can be runned on master or managed host &#8211; in previous version SGE ran 3 JVM on every host &#8211; one for <a href="http://wikis.sun.com/display/GridEngine/Managing+JVMs+and+Components">cs_vm ( configuration service ), executor_vm ( executor component ) and rp_vm ( resource provider )</a>. In SGE terminology it called <a href="http://wikis.sun.com/display/gridengine62u3/How+to+Install+SDM">SDM simple install</a>.</li>
<li>Now SGE have Exclusive Scheduling &#8211; <em><a href="http://wikis.sun.com/display/gridengine62u3/Configuring+Exclusive+Scheduling">this helps to guarantee predictable performance and to avoid interference when a job is not using all of the slots that are available on a host</a></em></li>
<li>Sun declared that now SGE have Microsoft Vista Support ( don&#8217;t think that there&#8217;s too much SGE installations on Vista ) and also some usual marking speech about  Power Saving features <img src='http://bokov.net/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
</ul>
<p>upd. Also there&#8217;s new <a href="http://developers.sun.com/sunstudio/">Sun Studio 12 Update 1</a> is available too.</p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/ec2/new-version-of-sun-grid-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Sun Grid Engine on Amazon EC2</title>
		<link>http://bokov.net/weblog/ec2/installing-sun-grid-engine-on-amazon-ec2/</link>
		<comments>http://bokov.net/weblog/ec2/installing-sun-grid-engine-on-amazon-ec2/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 17:54:45 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[compute grid]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[/etc/hosts]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[SGE]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=158</guid>
		<description><![CDATA[As base AMI i used ami-7db75014 &#8211; it&#8217;s OpenSolaris supported by Sun, common informartion about installing and using OpenSolaris in EC2 also available in Sun&#8217;s Amazon EC2 Getting started guide &#8211; in this post I will focus almost in SGE using in Amazon EC2. As SGE distributive i use all-in-one tar package &#8211; i choosed [...]]]></description>
			<content:encoded><![CDATA[<p>As base AMI i used ami-7db75014 &#8211; it&#8217;s <a href="http://blogs.sun.com/ec2/entry/opensolaris_2008_11_on_amazon">OpenSolaris supported by Sun</a>, common informartion about installing and using OpenSolaris in EC2 also available in <a href="http://www.sun.com/third-party/global/amazon/Sun_AmazonEC2_GettingStartedGuide.pdf">Sun&#8217;s Amazon EC2 Getting started guide</a> &#8211; in this post I will focus almost in SGE using in Amazon EC2. As SGE distributive i use all-in-one tar package &#8211; i choosed &#8220;All supported platform&#8221; in <a href="https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=GE-6.2U2-OS-G-F@CDS-CDS_SMI">Grid Engige download page</a> &#8211; it takes about 350 Mb, but I don&#8217;t worry about platform architecture &#8211; if sun support it &#8211; it will be in this package. This <strong>ge62u2_1.tar.gz </strong> contains bunch of other tar.gz&#8217;s ( and even <a href="http://hedeby.sunsource.net">hedeby&#8217;s core package</a> ) and can be unpacked by :</p>
<address>root@ec2-server:~/tools/archive# gzip -dc ge62u2_1.tar.gz | tar xvpf -</address>
<p>So I just go inside ge6.2u2_1 and unpack them all using something like this</p>
<address>for myfile in *.tar.gz</address>
<address>do</address>
<address> gzip -dc $myfile | tar xvpf -</address>
<address>done</address>
<p>One important thing &#8211; <strong>hedeby-1.0u2-core.tar.gz </strong>contains old versions of some files from <strong>ge-6.2u2_1-common.tar.gz &#8211; </strong>there&#8217;s conflicts in files common/util/arch  and common/util/arch_variables &#8211; <a href="bokov.net/data/administration/sge-hedeby/sge_hedeby_diff.txt">here&#8217;s diff for them</a> &#8211; may be sometimes it can be usefull, but for my configuration it causes very strange errors when I try to install executor host :</p>
<address>value == NULL for attribute &#8220;mailer&#8221; in configuration list of &#8220;ec2-xx-xxx-xxx-xxx.compute-1.amazonaws.com&#8221;</address>
<address>./inst_sge[261]: Translate: not found [No such file or directory]</address>
<address>./inst_sge[263]: Translate: not found [No such file or directory]</address>
<address>./inst_sge[264]: Translate: not found [No such file or directory]</address>
<p>When I replace this files from <strong>ge-6.2u2_1-common.tar.gz </strong>installation works as expected. Next point it&#8217;s DNS configuration &#8211; SGE is very picky to DNS and it will cause some problems in running SGE Amazon EC2 instances with SGE, this stuff can be fixed using <a href="http://www.cultofgary.com/2008/04/24/ec2-sun-grid-engine-and-host_aliases/"><strong>host_aliases</strong> file in SGE</a>, or other way it&#8217;s to use <strong><em>/etc/hosts </em></strong>file for it &#8211; some kind of this technique used in <a href="http://wiki.gridengine.info/wiki/index.php/SGE-Hedeby-And-Amazon-EC2">Hedeby-SGE on Amazon EC2 demo</a>, for example if we have master this name and 2 executor hosts I put this lines into /etc/hosts :</p>
<p><em><strong>#internal_ip external_full_name external_short_name internal_full_name internal_short_name</strong><br />
10.yyy.xyz.zzz ec2-RRR-TTT-ZZZ-YYY.compute-1.amazonaws.com ec2-RRR-TTT-ZZZ-YYY domU-mm-ww-PPP-WWW-FFF-GGG.compute-1.internal domU-mm-ww-PPP-WWW-FFF-GGG<br />
10.yyy.qwe.ttt ec2-aaa-bbb-ccc-ddd.compute-1.amazonaws.com ec2-aaa-bbb-ccc-ddd domU-mm-ww-JJJ-HHH-DDD-SSS.compute-1.internal domU-mm-ww-JJJ-HHH-DDD-SSS<br />
10.yyy.pre.ppp ec2-yyy-rrr-eee-qqq.compute-1.amazonaws.com ec2-yyy-rrr-eee-qqq domU-mm-ww-UUU-III-OOO-PPP.compute-1.internal domU-mm-ww-UUU-III-OOO-PPP</em></p>
<p>Also I use <em><strong>hostname ec2-RRR-TTT-ZZZ-YYY</strong></em> ( external_short_name )  to set instance hostname &#8211; this names I use as hostnames when I configure SGE.</p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/ec2/installing-sun-grid-engine-on-amazon-ec2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun Grid Engine &#8211; tips, tricks, troubles and questions</title>
		<link>http://bokov.net/weblog/compute-grid/sun-grid-engine-tips-tricks-troubles-and-questions/</link>
		<comments>http://bokov.net/weblog/compute-grid/sun-grid-engine-tips-tricks-troubles-and-questions/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 12:10:58 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[compute grid]]></category>
		<category><![CDATA[SGE]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=150</guid>
		<description><![CDATA[Below I try to summary my experience with SGE and it&#8217;s using on vary platform ( Solaris 10, Ubuntu, OpenSolaris, etc.. ). If you use Solaris &#8211; check out my Solaris &#8211; common questions and it’s differences from Linux &#8211; may be your problems deal with Solaris, but not SGE. So let&#8217;s go : when [...]]]></description>
			<content:encoded><![CDATA[<p>Below I try to summary my experience with SGE and it&#8217;s using on vary platform ( Solaris 10, Ubuntu, OpenSolaris, etc.. ). If you use Solaris &#8211; check out my <a href="http://bokov.net/weblog/administration/solaris-common-questins-and-its-differences-from-linux"></a>Solaris &#8211; common questions and it’s differences from Linux  &#8211; may be your problems deal with Solaris, but not SGE.<br />
So let&#8217;s go :</p>
<ul>
<li> when I installing SGE, and after export SGE_ROOT=&lt;my_sge_path&gt; i try to run <strong><em>util/setfileperm.sh</em></strong> I got &#8216;<strong><em>can&#8217;t find script /util/arch</em></strong>&#8216; error as shown below :<br />
<em> root@domU-12-31-39-03-CC-95:/opt/ge6.2u2_1# util/setfileperm.sh $SGE_ROOT<br />
can&#8217;t find script /util/arch<br />
</em>this error can be fixed by set SDM_DIST enviroment variable :<em><br />
export SDM_DIST=$SGE_ROOT</em></li>
<li>I got <strong><em><span><em>commlib error</em></span></em></strong> :<br />
<em> error: commlib error: access denied (client IP resolved to host name “”. This is not identical to clients host name “”)</em><em>ERROR: unable to contact qmaster using port 10500 on host “solaris-master.devnet.int.corp”</em><br />
rebooting SGE master host helps &#8211; see Sun Grid Engine : execution host can’t connet to master host with “commlib error: access denied</li>
<li>to be continued..</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/compute-grid/sun-grid-engine-tips-tricks-troubles-and-questions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun Grid Engine : execution host can&#8217;t connet to master host with &#8220;commlib error: access denied&#8221;</title>
		<link>http://bokov.net/weblog/administration/sun-grid-engine-execution-host-cant-connet-to-master-host-with-commlib-error-access-denied/</link>
		<comments>http://bokov.net/weblog/administration/sun-grid-engine-execution-host-cant-connet-to-master-host-with-commlib-error-access-denied/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 09:15:30 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[qconf]]></category>
		<category><![CDATA[SGE]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[telnet]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=120</guid>
		<description><![CDATA[I got some problems with my SGE cluster &#8211; I got some amount of Solaris 10 which running under some virtualization, all servers are the same configured and have equally environment, on one machine I install SGE master, on other SGE execution hosts &#8211; and some execution hosts works well, but on another I have [...]]]></description>
			<content:encoded><![CDATA[<p>I got some problems with my SGE cluster &#8211; I got some amount of Solaris 10 which running under some virtualization, all servers are the same configured and have equally environment, on one machine I install SGE master, on other SGE execution hosts &#8211; and some execution hosts works well, but on another I have strange error from &#8220;<strong><em>install_execd</em></strong>&#8221; :</p>
<address><span><em>Checking hostname resolving</em></span></address>
<address><span><em>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</em></span></address>
<address><span><em>Cannot contact qmaster. The command failed:</em></span></address>
<address><span><em> ./bin/sol-x86/qconf -sh</em></span></address>
<address><span><em>The error message was:</em></span></address>
<address><span><em> error: commlib error: access denied (client IP resolved to host name &#8220;&#8221;. This is not identical to clients host name &#8220;&#8221;)</em></span></address>
<address><span><em>ERROR: unable to contact qmaster using port 10500 on host &#8220;solaris-master.devnet.int.corp&#8221; </em></span></address>
<p>When I run &#8220;<strong><em>qconf -sh</em></strong>&#8221; I got :</p>
<address><em>bash-3.00# qconf -sh</em></address>
<address><em>error: commlib error: access denied (client IP resolved to host name &#8220;&#8221;. This is not identical to clients host name &#8220;&#8221;)</em></address>
<address><em>ERROR: unable to contact qmaster using port 10500 on host &#8220;</em><span><em>solaris-master.devnet.int.corp</em></span><em>&#8220;</em></address>
<p>I check out connection &#8211; ping works, hostname resolved, telnet connection on port 10500 &#8211; it works, after I check connection from master host &#8211; there&#8217;s no problems too. I compare environment on execution hosts which are worked well with hosts which have error &#8211; they got the same environment, master host configuration also have no any suspicios-looking stuff. I try to find something usefull in web &#8211; no results, some guys have same problem, but no one knows that&#8217;s happen and how to fix it. After I try to reboot execution hosts &#8211; no effect.</p>
<p>But when I try run &#8220;<em><strong>reboot</strong></em>&#8221; on master host &#8211; <strong>wow, it helps</strong>! So, guys, if you&#8217; got the same errors with SGE &#8211; try to &#8220;<em><strong>reboot</strong></em>&#8221; on your master host &#8211; it may helps.</p>
<address> </address>
<address><em><br />
</em></address>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/administration/sun-grid-engine-execution-host-cant-connet-to-master-host-with-commlib-error-access-denied/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sun Grid Engine &#8211; how to send job onto specific hosts ?</title>
		<link>http://bokov.net/weblog/programming/sun-grid-engine-how-to-send-job-onto-specific-hosts/</link>
		<comments>http://bokov.net/weblog/programming/sun-grid-engine-how-to-send-job-onto-specific-hosts/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 09:08:49 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[compute grid]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[drmaa]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[SGE]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=106</guid>
		<description><![CDATA[One way to do it consists in using queues &#8211; you may create unique queue for each host in your SGE grid ( using qconf -aq ) and specify this queue name in submitting parameters - qsub -q &#60;queue_name&#62; $SGE_ROOT/examples/jobs/simple.sh In case if you would like do deploy jobs onto grid from application ( C [...]]]></description>
			<content:encoded><![CDATA[<p>One way to do it consists in using queues &#8211; you may create unique queue for each host in your SGE grid ( using <a href="http://gridengine.sunsource.net/nonav/source/browse/~checkout~/gridengine/doc/htmlman/htmlman1/qconf.html"><strong><em>qconf -aq</em></strong></a> ) and specify this queue name in submitting parameters -</p>
<address class="code-java"><strong> qsub -q &lt;queue_name&gt; $SGE_ROOT/examples/jobs/simple.sh</strong></address>
<p class="code-java">In case if you would like do deploy jobs onto grid from application ( C or Java ) SGE supports special API &#8211; <a href="http://drmaa.org">Direct esource Managment Application API &#8211; DRMAA</a> &#8211; here&#8217;s some examples in <a href="http://wikis.sun.com/display/gridengine62u2/Using+Guide+(Printable)#UsingGuide(Printable)-!using.png!DevelopingWiththeCLanguageBinding">C++</a> and <a href="http://wikis.sun.com/display/gridengine62u2/Using+Guide+(Printable)#UsingGuide(Printable)-!using.png!DevelopingWiththeJavaLanguageBinding">Java</a> which may help to figure out this stuff. There&#8217;s <a href="http://gridengine.sunsource.net/nonav/source/browse/~checkout~/gridengine/doc/javadocs/index.html?content-type=text/html">SGE DRMAA Javadocs</a>,<a href="http://gridengine.sunsource.net/nonav/source/browse/~checkout~/gridengine/doc/javadocs/org/ggf/drmaa/package-tree.html"> drmaa package JavaDocs</a> and <a href="http://gridengine.sunsource.net/nonav/source/browse/~checkout~/gridengine/doc/htmlman/manuals.html?content-type=text/html">common help</a> &#8211; C library functions listed in section 3. To specify queue name <a href="http://gridengine.sunsource.net/nonav/source/browse/~checkout~/gridengine/doc/htmlman/htmlman3/drmaa_set_attribute.html?pathrev=V62u2_TAGdrmaa_set_attribute">dmraa_set_attribute</a> function should be used as shown below :</p>
<address><strong><em> drmaa_set_attribute(jt, DRMAA_NATIVE_SPECIFICATION, &#8220;q queue_name&#8221;, error, DRMAA_ERROR_STRING_BUFFER &#8211; 1);</em></strong> </address>
<p>Another way to route jon onto specific host it&#8217;s to specify request attributes in qsub  : &#8211; <strong><em>qsub -l &lt;request_attr_name&gt;</em></strong> &#8211; for Java example please see below. Also you may add &#8220;soft&#8221; or &#8220;hard&#8221; resource requirements modifier ( for more see <a href="http://wikis.sun.com/display/GridEngine/Grid+Engine+Glossary">SGE glossary</a> &#8211; hard/soft resource requirements).</p>
<address><strong><em> drmaa_set_attribute(jt, DRMAA_NATIVE_SPECIFICATION, &#8220;-hard  -q queue_name&#8221;, error, DRMAA_ERROR_STRING_BUFFER &#8211; 1);</em></strong> </address>
<p>Here&#8217;s a listing of  <a href="http://bokov.net/data/programming/sge-drmaa/sge_drmaa_test_example.c">drmaa C++ example</a> which runs job on specified queue &#8211; to build it you may use this simple <a href="http://bokov.net/data/programming/sge-drmaa/build.sh">bash script</a> which listed below &#8211; it works on Solaris 10, for Linux I suppose it&#8217;s better to use g++ compiler :</p>
<address><strong><em> </em></strong><strong><em>INC=-I$SGE_ROOT/include </em></strong></address>
<address><strong><em> </em></strong><strong><em>LIB=-L$SGE_ROOT/lib/sol-x86/</em></strong></address>
<address><strong><em> </em></strong><strong><em>LIB_NAME=-ldrmaa</em></strong></address>
<address><strong><em> </em></strong><strong><em>cc $INC $LIB $LIB_NAME sge_drmaa_test_example.c -o </em></strong><strong><em>sge_drmaa_test_example</em></strong><strong><em>.out</em></strong></address>
<p>If you got below error when you run this example</p>
<p><strong><em> </em></strong><strong><em>ld.so.1: sge_drmaa_test_example.out: fatal: libdrmaa.so.1.0: open failed: No such file or directory<br />
</em></strong><strong><em> </em></strong><strong><em> Killed</em></strong></p>
<p>please checkout LD_LIBRARY_PATH environment variable, it should be set in the way like ( Solaris 10 x86 )</p>
<p><strong><em> export LD_LIBRARY_PATH=$SGE_ROOT/lib/sol-x86/</em></strong></p>
<p>Java implementation also use DRMAA, but it looks little different from C++ : instead of  <a href="http://gridengine.sunsource.net/nonav/source/browse/~checkout~/gridengine/doc/htmlman/htmlman3/drmaa_set_attribute.html?pathrev=V62u2_TAGdrmaa_set_attribute">drmaaa_set_attribute</a> it called <a href="http://gridengine.sunsource.net/nonav/source/browse/~checkout~/gridengine/doc/javadocs/org/ggf/drmaa/JobTemplate.html#setNativeSpecification(java.lang.String)">JobTemplate::setNativeSpecification</a> :</p>
<p><strong><em> job_template.setNativeSpecification(&#8220;-hard -q &#8221; + queue_name);</em></strong></p>
<p>Another way to run job on needed host it&#8217;s to specifying hostname as request attributes &#8211; it look like</p>
<p><strong><em>jt.setNativeSpecification(&#8220;-l hostname=dev-host1&#8243;); </em></strong></p>
<p>Here&#8217;s an <a href="http://bokov.net/data/programming/sge-drmaa/SgeDrmaaJobRunner.java">java source for sge drmaa example</a> or <a href="http://bokov.net/data/programming/sge-drmaa/sge-drmaa-example.zip">Java drmaa example archive</a> &#8211; zip  contains source file, eclipse project and compiled binaries &#8211; to create jar you may use Eclipse export  or run inside <strong><em>bin</em></strong> folder</p>
<p><strong><em>jar cf SgeDrmaaJobRunner.jar net/bokov/sge/*.class</em></strong></p>
<p>To run this jar ( and run /tools/job.sh which already deployed on all executors ) on Solaris 10 I use this command</p>
<p><strong><em>java -cp $SGE_ROOT/lib/drmaa.jar:SgeDrmaaJobRunner.jar -Djava.library.path=$LD_LIBRARY_PATH net.bokov.sge.SgeDrmaaJobRunner soft host  not_wait  /tools/job.sh host2-dev-net<br />
</em></strong></p>
<p>Also you specify not only one queue name, but use a lists of queue&#8217;s names as parameter -</p>
<p><strong><em> </em></strong><em><strong>qsub -q queue_1, queue_2 $SGE_ROOT/examples/jobs/simple.sh</strong></em></p>
<p>At least qsub allows this syntax <img src='http://bokov.net/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/programming/sun-grid-engine-how-to-send-job-onto-specific-hosts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

