从windows启动spark ec2群集

2024-09-28 01:33:11 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在运行windows 8,希望启动spark群集。我用的是this tutorial。它不是用windowscli运行的,所以我尝试安装并使用cygwin。这样,我就可以更改环境变量并运行ec2脚本,但是我得到了错误:

ERROR: The identity file must be accessible only by you.
You can fix this with: chmod 400 "SpakPlaygroundKeyPair.pem"

所以我被困在这里了。我在This Question中看到有人建议直接运行python文件,这实际上是我想要做的,但我不确定如何运行。e、 g.运行脚本时,必须指定如下内容:

^{pr2}$

你如何告诉python脚本呢?在


Tags: the脚本windows错误环境变量errorthisec2
2条回答

只需运行建议的修复程序;如下所示:

$ chmod 400 "SpakPlaygroundKeyPair.pem"

这应该只授予您对pem文件的读取权限。在

我在windows 10上遇到了相同的问题。幸运的是,文件权限要求被编码到spark_ec2.py脚本中,而不是AWS python API的基本限制。在

最后,我在spark_ec2.py脚本中注释了以下几行:

        if not (file_mode & S_IRUSR) or not oct(file_mode)[-2:] == '00':
        print("ERROR: The identity file must be accessible only by you.", file=stderr)
        print('You can fix this with: chmod 400 "{f}"'.format(f=opts.identity_file),
              file=stderr)
        sys.exit(1)

相关问题 更多 >

    热门问题