I tried these new plugins which seemed to install fine but something&#39;s still not quite right -- trying to get a Client hangs:<br><br>sgeadmin@master:~$ ipython<br>Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) <br>Type &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br>
<br>IPython 0.11.dev -- An enhanced Interactive Python.<br>?         -&gt; Introduction and overview of IPython&#39;s features.<br>%quickref -&gt; Quick reference.<br>help      -&gt; Python&#39;s own help system.<br>object?   -&gt; Details about &#39;object&#39;, use &#39;object??&#39; for extra details.<br>
<br>In [1]: from IPython.parallel import Client<br><br>In [2]: rc = Client(&#39;starcluster.json&#39;)<br>---------------------------------------------------------------------------<br>AssertionError                            Traceback (most recent call last)<br>
/home/sgeadmin/&lt;ipython-input-2-c67e0a34263a&gt; in &lt;module&gt;()<br>----&gt; 1 rc = Client(&#39;starcluster.json&#39;)<br><br>/usr/local/lib/python2.6/dist-packages/ipython-0.11.dev-py2.6.egg/IPython/parallel/client/client.pyc in __init__(self, url_or_file, profile, profile_dir, ipython_dir, context, debug, exec_key, sshserver, sshkey, password, paramiko, timeout, **extra_args)<br>
    313                 if self._cd:<br>    314                     url_or_file = os.path.join(self._cd.security_dir, url_or_file)<br>--&gt; 315                 assert os.path.exists(url_or_file), &quot;Not a valid connection file or url: %r&quot;%url_or_file<br>
    316             with open(url_or_file) as f:<br>    317                 cfg = json.loads(f.read())<br><br>AssertionError: Not a valid connection file or url: u&#39;/home/sgeadmin/.ipython/profile_default/security/starcluster.json&#39;<br>
<br>---------<br><br>There are only two JSON files on the master node:<br><br>sgeadmin@master:~$ !fi<br>find . -name \*json<br>./.ipython/profile_default/security/ipcontroller-client.json<br>./.ipython/profile_default/security/ipcontroller-engine.json<br>
<br><br><br>-- Jonathan<br><br><div class="gmail_quote">On Wed, Jul 27, 2011 at 12:31 PM, MinRK <span dir="ltr">&lt;<a href="mailto:benjaminrk@gmail.com">benjaminrk@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
And I&#39;ve been using an updated version of the plugin to work with<br>
IPython 0.11 (parallel code has been completely rewritten, and is much<br>
improved for certain activities).  My plugins:<br>
<br>
<a href="https://github.com/minrk/starclusterplugins" target="_blank">https://github.com/minrk/starclusterplugins</a><br>
<br>
-MinRK<br>
<div><div></div><div class="h5"><br>
On Wed, Jul 27, 2011 at 12:14, Justin Riley &lt;<a href="mailto:jtriley@mit.edu">jtriley@mit.edu</a>&gt; wrote:<br>
&gt; -----BEGIN PGP SIGNED MESSAGE-----<br>
&gt; Hash: SHA1<br>
&gt;<br>
&gt; Hi Jonathan,<br>
&gt;<br>
&gt; The plugin still needs documenting but here&#39;s the basic flow:<br>
&gt;<br>
&gt; Put the plugin in the config:<br>
&gt;<br>
&gt; [plugin ipcluster]<br>
&gt; setup_class = starcluster.plugins.ipcluster.IPCluster<br>
&gt;<br>
&gt; Then put the plugin in a cluster template:<br>
&gt;<br>
&gt; [cluster smallcluster]<br>
&gt; ...<br>
&gt; plugins = ipcluster<br>
&gt;<br>
&gt; Then start a cluster:<br>
&gt;<br>
&gt; $ starcluster start myipcluster<br>
&gt;<br>
&gt; If you didn&#39;t put the plugin in the default cluster template (specified<br>
&gt; by default_template in the [global] section) you can specify the<br>
&gt; template like so:<br>
&gt;<br>
&gt; $ starcluster start -c smallcluster myipcluster<br>
&gt;<br>
&gt; This will start a cluster and run the ipcluster plugin which will setup<br>
&gt; an ipcluster session for your CLUSTER_USER (defaults to sgeadmin). Then<br>
&gt; to use ipcluster:<br>
&gt;<br>
&gt; $ starcluster sshmaster -u sgeadmin myipcluster<br>
&gt; sgeadmin@master~ ipython<br>
&gt; [~]&gt; from IPython.kernel.client import MultiEngineClient<br>
&gt; [~]&gt; mec = MultiEngineClient()<br>
&gt; [~]&gt; mec.get_ids()<br>
&gt; [0, 1]<br>
&gt;<br>
&gt; In the above IPython session we see that we have two nodes in our<br>
&gt; ipcluster. In general, you will have as many clients as you have nodes<br>
&gt; in your StarCluster.<br>
&gt;<br>
&gt; After you have a MultiEngineClient instance you can then do things like:<br>
&gt;<br>
&gt; [~]&gt; mec.map(lambda x: x**10, range(32)) # happens in parallel<br>
&gt; [~]&gt; mec.execute(&#39;d=10; print d&#39;) # executes on all nodes in parallel<br>
&gt;<br>
&gt; For more details see:<br>
&gt;<br>
&gt; <a href="http://ipython.org/ipython-doc/rel-0.10.2/html/parallel/parallel_multiengine.html#quick-and-easy-parallelism" target="_blank">http://ipython.org/ipython-doc/rel-0.10.2/html/parallel/parallel_multiengine.html#quick-and-easy-parallelism</a><br>

&gt;<br>
&gt; HTH,<br>
&gt;<br>
&gt; ~Justin<br>
&gt;<br>
&gt; On 07/26/2011 11:56 PM, Jonathan Taylor wrote:<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I was wondering if someone had any examples / documentations on how<br>
&gt;&gt; the IPCluster plugin works in StarCluster.<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt;<br>
&gt;&gt; Jonathan<br>
&gt;&gt;<br>
&gt;&gt; -- Jonathan Taylor Dept. of Statistics Sequoia Hall, 137<br>
&gt;&gt;  390 Serra Mall Stanford, CA 94305 Tel:   <a href="tel:650.723.9230" value="+16507239230">650.723.9230</a> Fax:<br>
&gt;&gt; <a href="tel:650.725.8977" value="+16507258977">650.725.8977</a> Web: <a href="http://www-stat.stanford.edu/%7Ejtaylo" target="_blank">http://www-stat.stanford.edu/~jtaylo</a><br>
&gt;<br>
&gt; -----BEGIN PGP SIGNATURE-----<br>
&gt; Version: GnuPG v2.0.17 (GNU/Linux)<br>
&gt; Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br>
&gt;<br>
&gt; iEYEARECAAYFAk4wY50ACgkQ4llAkMfDcrl5IwCeINhKGiM7nQgIEN7Bec0cQsmJ<br>
&gt; yn4An3kpz6CPlxfNt0t/tHKtofPG9Nwy<br>
&gt; =jnrj<br>
&gt; -----END PGP SIGNATURE-----<br>
</div></div>&gt; _______________________________________________<br>
&gt; StarCluster mailing list<br>
&gt; <a href="mailto:StarCluster@mit.edu">StarCluster@mit.edu</a><br>
&gt; <a href="http://mailman.mit.edu/mailman/listinfo/starcluster" target="_blank">http://mailman.mit.edu/mailman/listinfo/starcluster</a><br>
&gt;<br>
</blockquote></div><br><br clear="all"><br>-- <br>Jonathan Taylor                          <br>Dept. of Statistics                      <br>Sequoia Hall, 137                          <br>390 Serra Mall<br>Stanford, CA 94305<br>
Tel:   650.723.9230<br>Fax:   650.725.8977<br>Web: <a href="http://www-stat.stanford.edu/~jtaylo">http://www-stat.stanford.edu/~jtaylo</a><br>