【发布时间】:2015-10-24 21:49:09
【问题描述】:
我正在运行 Windows 8 并想启动一个 spark 集群。我正在使用this tutorial。它没有使用 Windows CLI 运行,所以我尝试安装和使用 cygwin。这样我就可以更改环境变量并运行 ec2 脚本,但出现错误:
ERROR: The identity file must be accessible only by you.
You can fix this with: chmod 400 "SpakPlaygroundKeyPair.pem"
所以我被困在这里。我在This Question看到有人建议直接运行python文件,这实际上是我想做的,但我不确定如何。例如运行脚本时,您必须指定诸如
之类的内容 --key-pair=SpakPlaygroundKeyPair --identity-file=SpakPlaygroundKeyPair.pem --region=us-east-1 --zone=us-east-1a --instance-type=t2.micro launch my-spark-cluster
你是怎么告诉python脚本的?
【问题讨论】:
-
错误很明显:您的问题是您的
pem文件的权限不正确。您是否尝试过使用chmod运行建议的修复程序?
标签: python amazon-web-services amazon-ec2 apache-spark