Python subprocess.CalledProcessError:返回非零退出状态12/127

时间:2016-04-25 14:53:35

标签: python amazon-ec2 ami

我正在尝试将现有的AMI部署到AWS上。 我尝试在Windows上使用Cygwin启动最好的集群,并尝试使用Ubuntu。 在这两种情况下,我都遇到了这个问题:

[user1@user1...lab1/amitest]$ ./spark-ec2 -i useruseastkey.pem -k useruseastkey --copy launch amitest
Setting up security groups...
Creating security group amitest-master
Creating security group amitest-slaves
Creating security group amitest-zoo
Checking for running cluster...
Using Spark AMI: ami-99bb0ff0
Launching instances...
Launched slaves, regid = r-67e38ac7
Launched master, regid = r-5ee089fe
Waiting for instances to start up...
Waiting 120 more seconds...
Deploying files to master...
/bin/sh: rsync: command not found
Traceback (most recent call last):
  File "./spark_ec2.py", line 759, in <module>
    main()
  File "./spark_ec2.py", line 648, in main
    setup_cluster(conn, master_nodes, slave_nodes, zoo_nodes, opts, True)
  File "./spark_ec2.py", line 363, in setup_cluster
    deploy_files(conn, "deploy.generic", opts, master_nodes, slave_nodes, zoo_nodes)
  File "./spark_ec2.py", line 604, in deploy_files
    subprocess.check_call(command, shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'rsync -rv -e 'ssh -o StrictHostKeyChecking=no -i useruseastkey.pem' '/tmp/tmpbB27rZ/' 'root@ec2-......compute-1.amazonaws.com:/'' returned non-zero exit status 127

我能够登录该实例,我也看到所有4个实例都已启动并运行。

想在这里指点方向。任何帮助都非常感谢。

由于

0 个答案:

没有答案