2012-09-15 13 views
5

Sto provando a sperimentarne alcuni con il cluster computing su AWS. Sono completamente nuovo in questo e ho alcuni problemi. Sto cercando di seguire il tutorial trovato qui: http://star.mit.edu/cluster/docs/latest/plugins/ipython.html#using-the-ipython-cluster. Io uso Starcluster per avviare un'istanza del cluster con il seguente:utilizzando starcluster e ipython su AWS

starcluster start mycluster 

Tutto viene in su come previsto e si vede che il plugin ipython è stato caricato. Allora provo ad eseguire il seguente comando come mostrato nel tutorial:

starcluster sshmaster mycluster -u myuser 

la connessione non riesce, però, e mi dice

Permission denied (publickey). 

sono in grado di accedere utilizzando

starcluster sshmaster mycluster 

così ho tentato di continuare il tutorial connesso al master ma quando provo a creare il client ricevo e errore:

AssertionError: Not a valid connection file or url: 
u'/root/.ipython/profile_default/security/ipcontroller-client.json' 

L'unica cosa che ho visto che sembrava fuori dal comune è quando il cluster è stato avviando questo è apparso:

>>> Running plugin ipcluster 
>>> Writing IPython cluster config files 
>>> Starting IPython cluster with 7 engines 
>>> Waiting for JSON connector file... 
>>> Creating IPCluster cache directory: /Users/username/.starcluster/ipcluster 
>>> Saving JSON connector file to '/Users/username/.starcluster/ipcluster/mycluster-us-east-1.json' 
!!! ERROR - Error occurred while running plugin 'ipcluster': 
Traceback (most recent call last): 
    File "/Library/Python/2.7/site-packages/StarCluster-0.93.3-py2.7.egg/starcluster/cluster.py", line 1506, in run_plugin 
    func(*args) 
    File "/Library/Python/2.7/site-packages/StarCluster-0.93.3-py2.7.egg/starcluster/plugins/ipcluster.py", line 276, in run 
    plug.run(nodes, master, user, user_shell, volumes) 
    File "<string>", line 2, in run 
    File "/Library/Python/2.7/site-packages/StarCluster-0.93.3-py2.7.egg/starcluster/utils.py", line 87, in wrap_f 
    res = func(*arg, **kargs) 
    File "/Library/Python/2.7/site-packages/StarCluster-0.93.3-py2.7.egg/starcluster/plugins/ipcluster.py", line 228, in run 
    cfile = self._start_cluster(master, n, profile_dir) 
    File "/Library/Python/2.7/site-packages/StarCluster-0.93.3-py2.7.egg/starcluster/plugins/ipcluster.py", line 173, in _start_cluster 
    master.ssh.get(json, local_json) 
    File "/Library/Python/2.7/site-packages/StarCluster-0.93.3-py2.7.egg/starcluster/sshutils/__init__.py", line 431, in get 
    self.scp.get(remotepaths, localpath, recursive=recursive) 
    File "/Library/Python/2.7/site-packages/StarCluster-0.93.3-py2.7.egg/starcluster/sshutils/scp.py", line 141, in get 
    self._recv_all() 
    File "/Library/Python/2.7/site-packages/StarCluster-0.93.3-py2.7.egg/starcluster/sshutils/scp.py", line 242, in _recv_all 
    msg = self.channel.recv(1024) 
    File "build/bdist.macosx-10.8-intel/egg/ssh/channel.py", line 611, in recv 
    raise socket.timeout() 
timeout 

Qualche idea?

risposta

6

Il tutorial assume CLUSTER_USER = myuser in ~/.starcluster/config anche se per impostazione predefinita CLUSTER_USER = sgeadmin