错误:无法在ec2中找到keypair GraphLab

时间:2013-12-04 01:03:04

标签: linux hadoop amazon-web-services ssh amazon-ec2

我正在尝试在Amazon ec2集群中运行GraphLab。但是我遇到了一些有关设置的问题。我知道这是一个基本问题,但我无法弄清楚这个问题。 1)当我运行命令时 / gl-ec2 -i~ / .ssh / graphlab.pem -k graphlabkey -s 1启动launchtest 对于ubuntu中的graphlab 它给了我错误

Launching instances...
ERROR:boto:400 Bad Request
ERROR:boto:<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>InvalidKeyPair.NotFound</Code><Message>The key pair 'Prashant-Raghav' does not exist</Message></Error></Errors><RequestID>366d452a-921d-4feb-a9d1-50bf8ccc2f55</RequestID></Response>
Traceback (most recent call last):
  File "./gl_ec2.py", line 750, in <module>
    main()
  File "./gl_ec2.py", line 532, in main
    conn, opts, cluster_name)
  File "./gl_ec2.py", line 282, in launch_cluster
    block_device_map = block_map)
  File "/home/hduser/graphlab/scripts/ec2/third_party/boto-2.4.1.zip/boto-2.4.1/boto/ec2/image.py", line 255, in run
  File "/home/hduser/graphlab/scripts/ec2/third_party/boto-2.4.1.zip/boto-2.4.1/boto/ec2/connection.py", line 678, in run_instances
  File "/home/hduser/graphlab/scripts/ec2/third_party/boto-2.4.1.zip/boto-2.4.1/boto/connection.py", line 925, in get_object
boto.exception.EC2ResponseError: EC2ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>InvalidKeyPair.NotFound</Code><Message>The key pair 'Prashant-Raghav' does not exist</Message></Error></Errors><RequestID>366d452a-921d-4feb-a9d1-50bf8ccc2f55</RequestID></Response>

1)我无法在ssh中找到生成的.pem文件。 2)我创建了一个ppk文件,我可以用它来运行GraphLab 3)差异是什么.ppk和.pem 4)当我创建密钥对时,密钥对存储在Ec2中,它存储在Windows中,但有没有办法进入linux,以便我可以指定路径..请帮助

由于

2 个答案:

答案 0 :(得分:0)

我对此有一些改进..我尝试了在线生成密钥对的方法。在我的mahcince下载它然后将其上传到亚马逊s3。你可以通过wget进入你的ubuntu。但问题现在是它无法找到密钥对。谢谢

答案 1 :(得分:0)

您必须将密钥存储在您的计算机上,例如在ec2文件夹